com.ibm.security.krb5
Class KerberosTokenConsumer
- java.lang.Object
com.ibm.security.krb5.KerberosTokenConsumer
- public class KerberosTokenConsumer
- extends java.lang.Object
Field Summary
Modifier and Type | Field and Description |
---|---|
|
CB_SIZE
|
|
CKSUM_SIZE_MIN
|
|
CKSUMTYPE_KRB
|
|
MECH_TYPE_KRB5
We only support the KRB5 mech.
|
Constructor Summary
Constructor and Description |
---|
KerberosTokenConsumer()
Creates a new KerberosTokenConsumer object.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
init(java.util.Map config)
Inializes the KerberosTokenConsumer with a Map set of objects listed:
SERVICE_KEYTAB = Kerberos KeyTab that contains the Servers Credentials SUBJECT= Input JAAS Subject that may or may not contain credentials ENCODING = JVM Character encoding(Default UTF-8) BASE64_TOKEN = byte[] of the Base64 encoded input Token DECODED_TOKEN = byte[] of the decoded input Token STRING_TOKEN = String of the Base64 encoded input Token SERVICE_NAME = String principal Name of the Service SERVICEPASSWORD = String Service password, required is using JAAS REALM_NAME = String REALM name LOGINCONF = JAAS Login Configuration File URL |
|
invoke(java.util.Map<java.lang.String,java.lang.Object> context)
|
|
setUseSubjectCreds(boolean setUseSubjectCreds)
Forces the context to use the provided subject for the credentials
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail
CB_SIZE
- public static final int CB_SIZE
See Also:
CKSUMTYPE_KRB
- public static final int CKSUMTYPE_KRB
See Also:
CKSUM_SIZE_MIN
- public static final int CKSUM_SIZE_MIN
See Also:
MECH_TYPE_KRB5
- public static Oid MECH_TYPE_KRB5
We only support the KRB5 mech.
Constructor Detail
KerberosTokenConsumer
- public KerberosTokenConsumer()
Creates a new KerberosTokenConsumer object.
Method Detail
init
- public void init(java.util.Map config)
- throws java.lang.Exception
Inializes the KerberosTokenConsumer with a Map set of objects listed:
SERVICE_KEYTAB = Kerberos KeyTab that contains the Servers Credentials
SUBJECT= Input JAAS Subject that may or may not contain credentials
ENCODING = JVM Character encoding(Default UTF-8)
BASE64_TOKEN = byte[] of the Base64 encoded input Token
DECODED_TOKEN = byte[] of the decoded input Token
STRING_TOKEN = String of the Base64 encoded input Token
SERVICE_NAME = String principal Name of the Service
SERVICEPASSWORD = String Service password, required is using JAAS
REALM_NAME = String REALM name
LOGINCONF = JAAS Login Configuration File URL
SERVICE_KEYTAB = Kerberos KeyTab that contains the Servers Credentials
SUBJECT= Input JAAS Subject that may or may not contain credentials
ENCODING = JVM Character encoding(Default UTF-8)
BASE64_TOKEN = byte[] of the Base64 encoded input Token
DECODED_TOKEN = byte[] of the decoded input Token
STRING_TOKEN = String of the Base64 encoded input Token
SERVICE_NAME = String principal Name of the Service
SERVICEPASSWORD = String Service password, required is using JAAS
REALM_NAME = String REALM name
LOGINCONF = JAAS Login Configuration File URL
Parameters:
config
- including the objects listed. Throws:
java.lang.Exception
invoke
- public void invoke(java.util.Map<java.lang.String,java.lang.Object> context)
- throws java.lang.Exception
Parameters:
context
- Map context will contain the object within this class after a successful invocation. Throws:
java.lang.IllegalStateException
java.lang.Exception
setUseSubjectCreds
- public void setUseSubjectCreds( boolean setUseSubjectCreds)
Forces the context to use the provided subject for the credentials
Parameters:
setUseSubjectCreds
- Boolean default equals false