com.ibm.portal.portlet.service.credentialvault.spi.secrets
Interface UserPasswordCredentialSecret

All Superinterfaces:
CredentialSecret

public interface UserPasswordCredentialSecret
extends CredentialSecret

Implementation of the CredentialSecret class for a userid/password secret.

Since:
5.1.0.1

Field Summary
 
Fields inherited from interface com.ibm.portal.portlet.service.credentialvault.spi.secrets.CredentialSecret
TYPE_BYTEARRAY, TYPE_JAAS_SUBJECT, TYPE_JAVA_OBJECT, TYPE_NO_SECRET_DATA, TYPE_UNDEFINED, TYPE_USERID_STRING_PASSWORD_STRING
 
Method Summary
 char[] getPassword()
          Returns the password.
 int getType()
          Returns the type of the secret.
 java.lang.String getUserId()
          Returns the userId.
 void setSecret(java.lang.String userId, char[] password)
          Sets the secret.
 
Methods inherited from interface com.ibm.portal.portlet.service.credentialvault.spi.secrets.CredentialSecret
isInitialized
 

Method Detail

getType

int getType()
Returns the type of the secret.

Specified by:
getType in interface CredentialSecret
Returns:
The credential Secret Type identifier.

getUserId

java.lang.String getUserId()
Returns the userId.

Returns:
The userId.

getPassword

char[] getPassword()
Returns the password.

Returns:
The password.

setSecret

void setSecret(java.lang.String userId,
               char[] password)
Sets the secret.

Parameters:
userId - The userId.
password - The password.