Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

com.ibm.wps.portletservice.credentialvault.credentials
Class UserPasswordPassiveCredential

java.lang.Object
  extended bycom.ibm.wps.portletservice.credentialvault.credentials.Credential
      extended bycom.ibm.wps.portletservice.credentialvault.credentials.PassiveCredential
          extended bycom.ibm.wps.portletservice.credentialvault.credentials.UserPasswordPassiveCredential
All Implemented Interfaces:
Credential, PassiveCredential, java.io.Serializable, UserPasswordPassiveCredential
Direct Known Subclasses:
WASAdminUserCredential

Deprecated. since 5.1.0.1, use the Java Portlet API and corresponding IBM portlet services instead

public class UserPasswordPassiveCredential
extends PassiveCredential
implements UserPasswordPassiveCredential

Simple standard implementation of PassiveCredential. This Credential is only a container of the user's secret. Portlets may call the getSecret() method in order to obtain and work with this secret.

Since:
WP 5.1.0.1
See Also:
Serialized Form

Field Summary
protected  UserPasswordCredentialSecret secret
          Deprecated.  
 

Fields inherited from class com.ibm.wps.portletservice.credentialvault.credentials.Credential
LOGGER_NAME
 

Fields inherited from interface com.ibm.portal.portlet.service.credentialvault.credentials.Credential
KEY_CREDENTIAL_SECRET
 

Constructor Summary
UserPasswordPassiveCredential()
          Deprecated.  
 

Method Summary
 char[] getPassword()
          Deprecated. Returns the password of this credential secret
 int getSecretType()
          Deprecated. Returns the credential's Secret Type in terms of the constants declared in com.ibm.portal.portlet.service.credentialvault.CredentialVaultService
Should be overwritten by any child class that "overwrites" the secret attribute.
 java.lang.String getUserId()
          Deprecated. Returns the user ID of this credential secret.
 void java.util.Map)">init(java.util.Map config)
          Deprecated. Creates a new UserPasswordPassive credential.
 

Methods inherited from class com.ibm.wps.portletservice.credentialvault.credentials.PassiveCredential
isActive
 

Methods inherited from class com.ibm.wps.portletservice.credentialvault.credentials.Credential
checkInitialized
 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Methods inherited from interface com.ibm.portal.portlet.service.credentialvault.credentials.PassiveCredential
isActive
 

Field Detail

secret

protected UserPasswordCredentialSecret secret
Deprecated. 

Constructor Detail

UserPasswordPassiveCredential

public UserPasswordPassiveCredential()
Deprecated. 

Method Detail
java.util.Map)">

init

public void init(java.util.Map config)
          throws CredentialVaultException
Deprecated. 
Creates a new UserPasswordPassive credential.

Specified by:
java.util.Map)">init in interface UserPasswordPassiveCredential
Overrides:
init in class Credential
Parameters:
config - The configuration needed to initialize this credential:
  • KEY_CREDENTIAL_SECRET UserPasswordCredentialSecret - the credential's secret (mandatory)
Throws:
CredentialVaultException - If any mandatory parameter is missing or has a wrong object type as value.

getSecretType

public int getSecretType()
Deprecated. 
Description copied from interface: Credential
Returns the credential's Secret Type in terms of the constants declared in com.ibm.portal.portlet.service.credentialvault.CredentialVaultService
Should be overwritten by any child class that "overwrites" the secret attribute.

Specified by:
getSecretType in interface UserPasswordPassiveCredential
Overrides:
getSecretType in class Credential
Returns:
int Credential Secret Type identifier

getUserId

public java.lang.String getUserId()
Deprecated. 
Returns the user ID of this credential secret.

Specified by:
getUserId in interface UserPasswordPassiveCredential
Returns:
String the user ID

getPassword

public char[] getPassword()
Deprecated. 
Returns the password of this credential secret

Specified by:
getPassword in interface UserPasswordPassiveCredential
Returns:
char[] the password

Overview  Package   Class  Tree  Serialized  Deprecated  Index  Help 

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.