IBM WebSphere Application ServerTM
Release 8

com.ibm.websphere.wssecurity.callbackhandler
Class KRBTokenGenerateCallback

java.lang.Object
  extended by com.ibm.websphere.wssecurity.callbackhandler.KRBTokenGenerateCallback
All Implemented Interfaces:
javax.security.auth.callback.Callback

public class KRBTokenGenerateCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback

This is a callback class for the Kerberos token in generator side.

See Also:
KRBToken, KRBGenerateCallbackHandler

Constructor Summary
KRBTokenGenerateCallback()
           
 
Method Summary
 java.lang.String getClientKerberosRealm()
          This method returns the Kerberos realm name associated with the Kerberos client.
 java.lang.String getClientName()
          This method returns the Kerberos client principal name.
 char[] getClientPassword()
          This method returns the password for the Kerberos client.
 java.lang.String getTargetServiceHostName()
          This method returns the host name associated with the target Kerberos service name.
 java.lang.String getTargetServiceKerberosRealm()
          This method returns the Kerberos realm name associated with the target Web Service.
 java.lang.String getTargetServiceName()
          This method returns the Kerberos service name associated with the target Web Service.
 javax.xml.namespace.QName getValueType()
          This method returns the value type of the Kerberos token.
 void setClientKerberosRealm(java.lang.String rName)
          This method sets the Kerberos realm name for the Kerberos client.
 void setClientName(java.lang.String cname)
          This method sets the Kerberos client principal name.
 void setClientPassword(char[] pwd)
          This method sets the password of the Kerberos client.
 void setTargetServiceHostName(java.lang.String hname)
          This method sets the host name associated with the target Kerberos service name.
 void setTargetServiceKerberosRealm(java.lang.String rName)
          This method sets the Kerberos realm name associated with the target Web Service.
 void setTargetServiceName(java.lang.String sname)
          This method sets the Kerberos service name associated with the target Web Service.
 void setValueType(javax.xml.namespace.QName qm)
          This method sets the value type of the Kerberos token.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KRBTokenGenerateCallback

public KRBTokenGenerateCallback()
Method Detail

getClientName

public java.lang.String getClientName()
This method returns the Kerberos client principal name.

Returns:
String Returns the Kerberos client principal name

setClientName

public void setClientName(java.lang.String cname)
This method sets the Kerberos client principal name.

Parameters:
cname - String - the Kerberos client principal name

getClientPassword

public char[] getClientPassword()
This method returns the password for the Kerberos client.

Returns:
char[] Returns the password of the Kerberos client

setClientPassword

public void setClientPassword(char[] pwd)
This method sets the password of the Kerberos client.

Parameters:
pwd - String - the Kerberos client's password

getClientKerberosRealm

public java.lang.String getClientKerberosRealm()
This method returns the Kerberos realm name associated with the Kerberos client.

Returns:
String Returns the Kerberos realm name associated with the Kerberos client.

setClientKerberosRealm

public void setClientKerberosRealm(java.lang.String rName)
This method sets the Kerberos realm name for the Kerberos client.

Parameters:
rName - String - set the Kerberos realm name for the Kerberos client.

getTargetServiceName

public java.lang.String getTargetServiceName()
This method returns the Kerberos service name associated with the target Web Service. The service name is part of a service principal name(SPN) in the form of service_name/host_name

Returns:
String Returns the Kerberos service name associated with the target Web Service.

setTargetServiceName

public void setTargetServiceName(java.lang.String sname)
This method sets the Kerberos service name associated with the target Web Service. The service name is part of a service principal name(SPN) in the form of service_name/host_name

Parameters:
sname - String - the service principal name associated with the target Web Service.

getTargetServiceHostName

public java.lang.String getTargetServiceHostName()
This method returns the host name associated with the target Kerberos service name. The host name is part of a service principal name(SPN) in the form of service_name/host_name

Returns:
String Returns the host name associated with the target Kerberos service name.

setTargetServiceHostName

public void setTargetServiceHostName(java.lang.String hname)
This method sets the host name associated with the target Kerberos service name. The host name is part of a service principal name(SPN) in the form of service_name/host_name

Parameters:
hname - String - sets the host name associated with the target Kerberos service name.

getTargetServiceKerberosRealm

public java.lang.String getTargetServiceKerberosRealm()
This method returns the Kerberos realm name associated with the target Web Service.

Returns:
String Returns the Kerberos realm name associated with the target Web Service.

setTargetServiceKerberosRealm

public void setTargetServiceKerberosRealm(java.lang.String rName)
This method sets the Kerberos realm name associated with the target Web Service.

Parameters:
rName - String - set the Kerberos realm name associated with the target Web Service.

getValueType

public javax.xml.namespace.QName getValueType()
This method returns the value type of the Kerberos token. The values of the value type are defined in Oasis Kerberos Token Profile specification.

Returns:
QName - the QName representation of the Kerberos token value type.

setValueType

public void setValueType(javax.xml.namespace.QName qm)
This method sets the value type of the Kerberos token. The values of the value type are defined in Oasis Kerberos Token Profile specification.

Parameters:
qm - QName - the QName representation of the Kerberos token value type.

IBM WebSphere Application ServerTM
Release 8