public interface Credential
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CREDENTIAL_TYPECredential type in the credential. | 
| static java.lang.String | EXPIRE_TIME_IN_MSCredential expire time in ms since the epoch. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.Map<java.lang.String,java.lang.String> | credentialInfo()Returns credential information. | 
| java.lang.String | credentialType()Returns the type of the credential. | 
| long | expireTimeInMs()Returns the expiration time of the credential in milliseconds since the epoch, 0 means not
 expire. | 
| void | initialize(java.util.Map<java.lang.String,java.lang.String> credentialInfo,
          long expireTimeInMs)Initialize the credential with the credential information. | 
| default java.util.Map<java.lang.String,java.lang.String> | toProperties()Converts the credential to properties to transfer the credential though API. | 
static final java.lang.String CREDENTIAL_TYPE
static final java.lang.String EXPIRE_TIME_IN_MS
java.lang.String credentialType()
long expireTimeInMs()
java.util.Map<java.lang.String,java.lang.String> credentialInfo()
void initialize(java.util.Map<java.lang.String,java.lang.String> credentialInfo,
                long expireTimeInMs)
This method is invoked to deserialize the credential in client side.
credentialInfo - The credential information from credentialInfo().expireTimeInMs - The expire-time from expireTimeInMs().default java.util.Map<java.lang.String,java.lang.String> toProperties()