com.ibm.security.krb5

Class KerberosTokenGenerator

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

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

Constructor Summary

Constructor and Description
KerberosTokenGenerator()
Creates a new KerberosTokenGenerator object.

Method Summary

Modifier and Type Method and Description
  1. void
init(java.util.Map config)
Invokes the KerberosTokenConsumer with a Map set of objects listed:
SUBJECT= Input JAAS Subject that may or may not contain credentials
SERVICE_NAME = String principal Name of the Service
WRAPPED = Indications if this is to be an AP_REQ Token(Integer 0) or a GSS Token(Integer 1)
CLIENT_NAME = String principal Name of the Service
CLIENTPASSWORD = String Service password, required is using JAAS
REALM_NAME = String REALM name
CLIENTLOGINCONF = JAAS Login Configuration File URL
  1. void
invoke(java.util.Map context)
  1. void
setUseSubjectCredsOnly(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

Constructor Detail

KerberosTokenGenerator

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

Method Detail

init

  1. public void init(java.util.Map config)
  2. throws java.lang.Exception
Invokes the KerberosTokenConsumer with a Map set of objects listed:
SUBJECT= Input JAAS Subject that may or may not contain credentials
SERVICE_NAME = String principal Name of the Service
WRAPPED = Indications if this is to be an AP_REQ Token(Integer 0) or a GSS Token(Integer 1)
CLIENT_NAME = String principal Name of the Service
CLIENTPASSWORD = String Service password, required is using JAAS
REALM_NAME = String REALM name
CLIENTLOGINCONF = JAAS Login Configuration File URL
Parameters:
config - including the objects listed.
Throws:
java.lang.IllegalStateException
java.lang.Exception

invoke

  1. public void invoke(java.util.Map 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

setUseSubjectCredsOnly

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