public static class CredentialGenerator.ClassCode
extends java.lang.Object
CredentialGenerator implementations.
The following schemes are supported as of now: DummyAuthenticator,
LdapUserAuthenticator, PKCSAuthenticator. In addition SSL socket mode with
mutual authentication is also supported.
To add a new authentication scheme the following needs to be done:
AuthInitialize and Authenticator classes for
clients/peers.VALUES
array and increase that if it is getting overflowed. Note the methods and fields for existing
schemes and add for the new one in a similar manner.CredentialGenerator.ClassCode enumeration
value.All security dunit tests will automagically start testing the new implementation after this.
| Modifier and Type | Field and Description |
|---|---|
static CredentialGenerator.ClassCode |
DUMMY |
static CredentialGenerator.ClassCode |
LDAP |
static CredentialGenerator.ClassCode |
PKCS |
static CredentialGenerator.ClassCode |
SSL |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(CredentialGenerator.ClassCode opCode)
Indicates whether other
ClassCode is same as this one. |
boolean |
equals(java.lang.Object obj)
Indicates whether other object is same as this one.
|
static CredentialGenerator.ClassCode |
fromOrdinal(byte ordinal)
Returns the
ClassCode represented by specified ordinal. |
static java.util.List |
getAll()
Returns all the possible values.
|
int |
hashCode()
Returns a hash code value for this
ClassCode which is the same as its ordinal. |
boolean |
isDummy() |
boolean |
isLDAP() |
boolean |
isPKCS() |
boolean |
isSSL() |
static CredentialGenerator.ClassCode |
parse(java.lang.String operationName)
Returns the
ClassCode represented by specified string. |
byte |
toOrdinal()
Returns the ordinal for this operation code.
|
java.lang.String |
toString()
Returns a string representation for this operation.
|
public static final CredentialGenerator.ClassCode DUMMY
public static final CredentialGenerator.ClassCode LDAP
public static final CredentialGenerator.ClassCode PKCS
public static final CredentialGenerator.ClassCode SSL
public boolean isDummy()
public boolean isLDAP()
public boolean isPKCS()
public boolean isSSL()
public static CredentialGenerator.ClassCode fromOrdinal(byte ordinal)
ClassCode represented by specified ordinal.public static CredentialGenerator.ClassCode parse(java.lang.String operationName)
ClassCode represented by specified string.public static java.util.List getAll()
public byte toOrdinal()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean equals(CredentialGenerator.ClassCode opCode)
ClassCode is same as this one.ClassCode is same as this one.public int hashCode()
ClassCode which is the same as its ordinal.hashCode in class java.lang.Object