public static class AuthzCredentialGenerator.ClassCode
extends java.lang.Object
AuthzCredentialGenerator implementations.
The following schemes are supported as of now:
DummyAuthorization with DummyAuthenticatorXMLAuthorization with DummyAuthenticatorXMLAuthorization with LDAPAuthenticatorXMLAuthorization with PKCSAuthenticatorXMLAuthorization when using SSL socketsTo add a new authorization scheme the following needs to be done:
AccessControl.CredentialGenerator.ClassCodeVALUES
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.AuthzCredentialGenerator. Note the
AuthzCredentialGenerator.init(org.apache.geode.security.generator.CredentialGenerator) method where different authentication schemes can be
passed and initialize differently for the authentication schemes that shall be handled.AuthzCredentialGenerator.create(org.apache.geode.security.generator.AuthzCredentialGenerator.ClassCode) method to add creation of an instance of
the new implementation for the ClassCode enumeration value.All dunit tests will automagically start testing the new implementation after this.
| Modifier and Type | Field and Description |
|---|---|
static AuthzCredentialGenerator.ClassCode |
DUMMY |
static AuthzCredentialGenerator.ClassCode |
XML |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(AuthzCredentialGenerator.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 AuthzCredentialGenerator.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 |
isXml() |
static AuthzCredentialGenerator.ClassCode |
parse(java.lang.String operationName)
Returns the
ClassCode represented by specified string. |
byte |
toOrdinal()
Returns the ordinal for this class code.
|
java.lang.String |
toString()
Returns a string representation for this class code.
|
public static final AuthzCredentialGenerator.ClassCode DUMMY
public static final AuthzCredentialGenerator.ClassCode XML
public boolean isDummy()
public boolean isXml()
public static AuthzCredentialGenerator.ClassCode fromOrdinal(byte ordinal)
ClassCode represented by specified ordinal.public static AuthzCredentialGenerator.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(AuthzCredentialGenerator.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.ObjectClassCode.