Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.security.jps.service.credstore
Class PasswordCredentialImpl

java.lang.Object
  extended by oracle.security.jps.service.credstore.PasswordCredentialImpl
All Implemented Interfaces:
Externalizable, Serializable, Credential, PasswordCredential

public class PasswordCredentialImpl
extends java.lang.Object
implements PasswordCredential


Field Summary
static java.lang.Class CLASS_INSTANCE
           
 
Constructor Summary
PasswordCredentialImpl()
          Creates a new empty Password Credential object.
PasswordCredentialImpl(java.lang.String name, char[] password, java.lang.String description, java.util.Calendar expiryTime)
          Creates a new Password Credential object with passed values.
 
Method Summary
 java.lang.String getDescription()
          Returns the description of the credential
 java.util.Calendar getExpiryTime()
          Returns the expiration time if credential is created with expiration time.
 java.lang.String getName()
          Returns the name of the user
 char[] getPassword()
          Returns the password of the user
 void readExternal(ObjectInput in)
           
 void setDescription(java.lang.String description)
          Sets the description of the credential
 void setExpiryTime(java.util.Calendar expiryTime)
          Sets the expiration time for this credential.
 void setName(java.lang.String sUserName)
          Sets the name of the user
 void setPassword(java.lang.String sPwd)
          Sets the password of the user
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE
Constructor Detail

PasswordCredentialImpl

public PasswordCredentialImpl()
                       throws CredentialInvalidException,
                              CredStoreException
Creates a new empty Password Credential object.

Throws:
CredStoreException - if any error happens.
CredentialInvalidException

PasswordCredentialImpl

public PasswordCredentialImpl(java.lang.String name,
                              char[] password,
                              java.lang.String description,
                              java.util.Calendar expiryTime)
                       throws CredentialInvalidException,
                              CredStoreException
Creates a new Password Credential object with passed values.

Throws:
CredStoreException - if any error happens.
CredentialInvalidException
Method Detail

getName

public java.lang.String getName()
Returns the name of the user

Specified by:
getName in interface PasswordCredential

setName

public void setName(java.lang.String sUserName)
Sets the name of the user


getPassword

public char[] getPassword()
Returns the password of the user

Specified by:
getPassword in interface PasswordCredential

setPassword

public void setPassword(java.lang.String sPwd)
Sets the password of the user


getDescription

public java.lang.String getDescription()
Returns the description of the credential

Specified by:
getDescription in interface Credential

setDescription

public void setDescription(java.lang.String description)
Sets the description of the credential

Specified by:
setDescription in interface Credential

getExpiryTime

public java.util.Calendar getExpiryTime()
Returns the expiration time if credential is created with expiration time. If credential is created without expiration time, this method returns null.

Specified by:
getExpiryTime in interface PasswordCredential

setExpiryTime

public void setExpiryTime(java.util.Calendar expiryTime)
                   throws CredStoreRuntimeException
Sets the expiration time for this credential.

Specified by:
setExpiryTime in interface PasswordCredential
Parameters:
expiryTime - - Expiry time of this credential. Must be non-null and after current time.
Throws:
CredStoreRuntimeException - if invalid value is provided

writeExternal

public void writeExternal(ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.