com.unboundid.directory.sdk.broker.types
Class RefreshToken

java.lang.Object
  extended by com.unboundid.directory.sdk.broker.types.Token
      extended by com.unboundid.directory.sdk.broker.types.RefreshToken

@NotExtensible
@Mutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public final class RefreshToken
extends Token

This class provides a data structure for working with OAuth2 refresh tokens.


Constructor Summary
RefreshToken(java.lang.String applicationId, java.util.Date generateTimestamp, long maxValiditySeconds, java.util.Set<java.lang.String> scopeIds)
          Construct a new refresh token instance.
 
Method Summary
protected  void toString(java.lang.StringBuilder buffer)
          Appends a string representation of this refresh token to the provided buffer.
 
Methods inherited from class com.unboundid.directory.sdk.broker.types.Token
equals, getApplicationId, getGenerateTimestamp, getMaxValiditySeconds, getScopeIds, getValue, hashCode, isExpired, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RefreshToken

public RefreshToken(java.lang.String applicationId,
                    java.util.Date generateTimestamp,
                    long maxValiditySeconds,
                    java.util.Set<java.lang.String> scopeIds)
Construct a new refresh token instance.

Parameters:
applicationId - The application ID with which this token is associated. Must not be null.
generateTimestamp - The time that this token was generated. Must not be null.
maxValiditySeconds - The maximum length of time in seconds that this token will be considered valid. Must not be null and must not be negative.
scopeIds - The set of scopes for which the client has been authorized. Must not be null.
Method Detail

toString

protected void toString(java.lang.StringBuilder buffer)
Appends a string representation of this refresh token to the provided buffer.

Specified by:
toString in class Token
Parameters:
buffer - The buffer to which the string representation should be appended.