Package dev.galasa.framework.spi.creds
Class CredentialsUsernameToken
java.lang.Object
dev.galasa.framework.spi.creds.Credentials
dev.galasa.framework.spi.creds.AbstractCredentials
dev.galasa.framework.spi.creds.CredentialsUsernameToken
- All Implemented Interfaces:
ICredentials
,ICredentialsUsername
,ICredentialsUsernameToken
public class CredentialsUsernameToken
extends AbstractCredentials
implements ICredentialsUsernameToken
-
Field Summary
Fields inherited from class dev.galasa.framework.spi.creds.AbstractCredentials
CREDS_PROPERTY_PREFIX
-
Constructor Summary
ConstructorDescriptionCredentialsUsernameToken
(String plainTextUsername, String encryptedToken) CredentialsUsernameToken
(SecretKeySpec key, String username, String token) -
Method Summary
Methods inherited from class dev.galasa.framework.spi.creds.AbstractCredentials
getDescription, getLastUpdatedByUser, getLastUpdatedTime, getMetadataProperties, setDescription, setLastUpdatedByUser, setLastUpdatedTime
Methods inherited from class dev.galasa.framework.spi.creds.Credentials
base64, decode, decrypt, decryptToString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.galasa.ICredentials
getDescription, getLastUpdatedByUser, getLastUpdatedTime, getMetadataProperties, setDescription, setLastUpdatedByUser, setLastUpdatedTime
-
Constructor Details
-
CredentialsUsernameToken
-
CredentialsUsernameToken
public CredentialsUsernameToken(SecretKeySpec key, String username, String token) throws CredentialsException - Throws:
CredentialsException
-
-
Method Details
-
getUsername
- Specified by:
getUsername
in interfaceICredentialsUsername
-
getToken
public byte[] getToken()- Specified by:
getToken
in interfaceICredentialsUsernameToken
-
toProperties
- Specified by:
toProperties
in interfaceICredentials
-