com.ibm.security.krb5

Class KerberosTokenConsumer

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.KerberosTokenConsumer

  1. public class KerberosTokenConsumer
  2. extends java.lang.Object
DOCUMENT ME!

Field Summary

Modifier and Type Field and Description
  1. static
  2. int
CB_SIZE
  1. static
  2. int
CKSUM_SIZE_MIN
  1. static
  2. int
CKSUMTYPE_KRB
  1. static
  2. Oid
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
  1. void
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
  1. void
invoke(java.util.Map<java.lang.String,java.lang.Object> context)
  1. void
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

  1. public static final int CB_SIZE
See Also:

CKSUMTYPE_KRB

  1. public static final int CKSUMTYPE_KRB
See Also:

CKSUM_SIZE_MIN

  1. public static final int CKSUM_SIZE_MIN
See Also:

MECH_TYPE_KRB5

  1. public static Oid MECH_TYPE_KRB5
We only support the KRB5 mech.

Constructor Detail

KerberosTokenConsumer

  1. public KerberosTokenConsumer()
Creates a new KerberosTokenConsumer object.

Method Detail

init

  1. public void init(java.util.Map config)
  2. 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
Parameters:
config - including the objects listed.
Throws:
java.lang.Exception

invoke

  1. public void invoke(java.util.Map<java.lang.String,java.lang.Object> context)
  2. 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

  1. public void setUseSubjectCreds( boolean setUseSubjectCreds)
Forces the context to use the provided subject for the credentials
Parameters:
setUseSubjectCreds - Boolean default equals false