public class CredentialFactory
extends java.lang.Object
| Constructor and Description | 
|---|
| CredentialFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| static Credential | create(java.lang.String credentialType,
      java.util.Map<java.lang.String,java.lang.String> credentialInfo,
      long expireTimeInMs)Creates a  Credentialinstance based on the provided credential type, information, and
 expiration time. | 
public static Credential create(java.lang.String credentialType, java.util.Map<java.lang.String,java.lang.String> credentialInfo, long expireTimeInMs)
Credential instance based on the provided credential type, information, and
 expiration time.credentialType - The type of the credential to be created. This string is used to look up
     the corresponding credential class.credentialInfo - A Map containing key-value pairs of information needed to
     initialize the credential.expireTimeInMs - The expiration time of the credential in milliseconds.Credential object.