javax.security.auth

Interface Refreshable

public interface Refreshable

An object whose internal state may be refreshed: as in a credential object with a expiry date.
Method Summary
booleanisCurrent()
Tells whether or not this object is current.
voidrefresh()
Refresh this object.

Method Detail

isCurrent

public boolean isCurrent()
Tells whether or not this object is current. Refreshable objects that are not current may need to be refreshed.

Returns: Whether this object is current.

refresh

public void refresh()
Refresh this object. The process involved in refreshing an object is per-implementation dependent.

Throws: RefreshFailedException If refreshing this object fails. SecurityException If the caller does not have permission to refresh, or to take the steps involved in refreshing, this object.