Name
Refreshable
Synopsis
A class implements this interface if its
instances that have a limited period of validity (as some security
credentials
do) and need to be periodically
“refreshed” in order to remain
valid. isCurrent( )
returns true
if the object is currently valid, and
false
if it has expired and needs to be refreshed.
refresh( )
attempts to revalidate or extend the
validity of the object. It throws a
RefreshFailedException
if it does not succeed.
(And may also throw a SecurityException
if the
caller does not have the requisite permissions.)
public interface Refreshable { // Public Instance Methods boolean isCurrent( ); void refresh( ) throws RefreshFailedException; }
Implementations
javax.security.auth.kerberos.KerberosTicket
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.