Ixxerja permezz ta’


AuthenticationToken Class

  • java.lang.Object
    • com.microsoft.store.partnercenter.AuthenticationToken

public final class AuthenticationToken

Represents an authentication token for a resource.

Constructor Summary

Constructor Description
AuthenticationToken(String token, DateTime expiryTime)

Initializes a new instance of the AuthenticationToken class.

Method Summary

Modifier and Type Method and Description
org.joda.time.Duration getExpiryBuffer()
org.joda.time.DateTime getExpiryTime()
java.lang.String getToken()
boolean isExpired()

Indicates whether the token has expired or not.

void setExpiryBuffer(Duration value)

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Constructor Details

AuthenticationToken

public AuthenticationToken(String token, DateTime expiryTime)

Initializes a new instance of the AuthenticationToken class.

Parameters:

token - The authentication token.
expiryTime - The token expiry time.

Method Details

getExpiryBuffer

public Duration getExpiryBuffer()

getExpiryTime

public DateTime getExpiryTime()

getToken

public String getToken()

isExpired

public boolean isExpired()

Indicates whether the token has expired or not.

Returns:

true if token has expired; otherwise false.

setExpiryBuffer

public void setExpiryBuffer(Duration value)

Parameters:

value

Applies to