Package edu.vt.middleware.ldap.jaas
Class LdapCredential
- java.lang.Object
-
- edu.vt.middleware.ldap.jaas.LdapCredential
-
- All Implemented Interfaces:
java.io.Serializable
public class LdapCredential extends java.lang.Object implements java.io.SerializableLdapCredentialprovides a custom implementation for adding LDAP credentials to aSubject.- Version:
- $Revision: 1330 $ $Date: 2010-05-24 00:10:53 +0200 (Mon, 24 May 2010) $
- Author:
- Middleware Services
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static intHASH_CODE_SEEDhash code seed.
-
Constructor Summary
Constructors Constructor Description LdapCredential(java.lang.Object credential)This creates a newLdapCredentialwith the supplied credential.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)This returns the supplied Object is equal to thisLdapCredential.java.lang.ObjectgetCredential()This returns the credential for thisLdapCredential.inthashCode()This returns the hash code for thisLdapPrincipal.
-
-
-
Field Detail
-
HASH_CODE_SEED
protected static final int HASH_CODE_SEED
hash code seed.- See Also:
- Constant Field Values
-
-
Method Detail
-
getCredential
public java.lang.Object getCredential()
This returns the credential for thisLdapCredential.- Returns:
Object
-
equals
public boolean equals(java.lang.Object o)
This returns the supplied Object is equal to thisLdapCredential.- Overrides:
equalsin classjava.lang.Object- Parameters:
o-Object- Returns:
boolean
-
hashCode
public int hashCode()
This returns the hash code for thisLdapPrincipal.- Overrides:
hashCodein classjava.lang.Object- Returns:
int
-
-