Package dev.galasa.framework.spi.creds
Class CredentialsUsernamePassword
java.lang.Object
dev.galasa.framework.spi.creds.Credentials
dev.galasa.framework.spi.creds.AbstractCredentials
dev.galasa.framework.spi.creds.CredentialsUsernamePassword
- All Implemented Interfaces:
ICredentials
,ICredentialsUsername
,ICredentialsUsernamePassword
public class CredentialsUsernamePassword
extends AbstractCredentials
implements ICredentialsUsernamePassword
-
Field Summary
Fields inherited from class dev.galasa.framework.spi.creds.AbstractCredentials
CREDS_PROPERTY_PREFIX
-
Constructor Summary
ConstructorDescriptionCredentialsUsernamePassword
(String plainTextUsername, String plainTextPassword) CredentialsUsernamePassword
(SecretKeySpec key, String username, String password) -
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
-
CredentialsUsernamePassword
-
CredentialsUsernamePassword
public CredentialsUsernamePassword(SecretKeySpec key, String username, String password) throws CredentialsException - Throws:
CredentialsException
-
-
Method Details
-
getUsername
- Specified by:
getUsername
in interfaceICredentialsUsername
-
getPassword
- Specified by:
getPassword
in interfaceICredentialsUsernamePassword
-
toProperties
- Specified by:
toProperties
in interfaceICredentials
-