public class CredentialDTO extends java.lang.Object implements Credential
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
CredentialDTO.Builder
Builder class for constructing CredentialDTO instances. 
 | 
CREDENTIAL_TYPE, EXPIRE_TIME_IN_MS| Modifier and Type | Method and Description | 
|---|---|
static CredentialDTO.Builder | 
builder()  | 
java.util.Map<java.lang.String,java.lang.String> | 
credentialInfo()
Returns credential information. 
 | 
java.lang.String | 
credentialType()
Returns the type of the credential. 
 | 
boolean | 
equals(java.lang.Object o)  | 
long | 
expireTimeInMs()
Returns the expiration time of the credential in milliseconds since the epoch, 0 means not
 expire. 
 | 
int | 
hashCode()  | 
void | 
initialize(java.util.Map<java.lang.String,java.lang.String> credentialInfo,
          long expireTimeInMs)
Initialize the credential with the credential information. 
 | 
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waittoPropertiespublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String credentialType()
CredentialcredentialType in interface Credentialpublic long expireTimeInMs()
CredentialexpireTimeInMs in interface Credentialpublic java.util.Map<java.lang.String,java.lang.String> credentialInfo()
CredentialcredentialInfo in interface Credentialpublic void initialize(java.util.Map<java.lang.String,java.lang.String> credentialInfo,
                       long expireTimeInMs)
CredentialThis method is invoked to deserialize the credential in client side.
initialize in interface CredentialcredentialInfo - The credential information from Credential.credentialInfo().expireTimeInMs - The expire-time from Credential.expireTimeInMs().public static CredentialDTO.Builder builder()