public static final class CredentialGenerator.ClassCode extends 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.CredentialGenerator.Factory#create method to add
creation of an instance of the new implementation for the
ClassCode enumeration value.| 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(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 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(String operationName)
Returns the
ClassCode represented by specified string. |
byte |
toOrdinal()
Returns the ordinal for this operation code.
|
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(String operationName)
ClassCode represented by specified string.public static List getAll()
public byte toOrdinal()
public final String toString()
public final boolean equals(Object obj)
public final boolean equals(CredentialGenerator.ClassCode opCode)
ClassCode is same as this one.ClassCode is same as this one.Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.