com.ibm.datapower.wamt
Class Credential

java.lang.Object
  extended by com.ibm.datapower.wamt.Credential

public class Credential
extends java.lang.Object

The Credential provides data for access control to the Repository and its contents. The Credential is basically a data container for a collection of property values. Example properties are userid and passwords. It can also be used to pass the repository directory for the local file system implementation. The Credential is passed to the Manager at startup, which in turn passes it to the RepositoryFactory. The RepositoryFactory passes it to the Repository implementation so that the RepositoryImpl can read these properties and do whatever it wants to validate authentication and authorization for access to the repository. The repository is considered the asset that needs access control, because of the data it contains, which includes device administrative userids and passwords. For access control to the binary executable jar, we will rely on filesystem access controls.

See the local filesystem package for an example use of the Credential object.

See Also:
RepositoryFactory.getRepository(String, Credential), Repository, Manager.getInstance(Map), Manager.OPTION_CREDENTIAL

Field Summary
static java.lang.String COPYRIGHT_2009_2010
           
 
Constructor Summary
Credential()
          Create an empty credential.
 
Method Summary
 java.lang.Object getProperty(java.lang.String name)
          Get the value of the named property from this credential.
 void setProperty(java.lang.String name, java.lang.Object value)
          Add information to a credential, such as a userid, password, SAML assertion, signed message, etc.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT_2009_2010

public static final java.lang.String COPYRIGHT_2009_2010
See Also:
Constant Field Values
Constructor Detail

Credential

public Credential()
Create an empty credential. Use the setProperty(String, Object) method to add information to this credential object. After the credential properties are populated it will be passed to the Manager using OPTION_CREDENTIAL.

See Also:
setProperty(String, Object), Manager.OPTION_CREDENTIAL
Method Detail

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Add information to a credential, such as a userid, password, SAML assertion, signed message, etc.

Parameters:
name - name of the property, such as "password". The list of recognized names is dependent on the Manager which evaluates this credential.
value - a value of this property that corresponds with the name.
See Also:
getProperty(String)

getProperty

public java.lang.Object getProperty(java.lang.String name)
Get the value of the named property from this credential.

Parameters:
name - the name of the property to get
Returns:
the value of the named property of this credential.
See Also:
setProperty(String, Object)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


© Copyright IBM Corp. 2006, 2010 All Rights Reserved.