org.apache.ws.security.validate
Class KerberosTokenValidator

java.lang.Object
  extended by org.apache.ws.security.validate.KerberosTokenValidator
All Implemented Interfaces:
Validator

public class KerberosTokenValidator
extends java.lang.Object
implements Validator


Constructor Summary
KerberosTokenValidator()
           
 
Method Summary
 javax.security.auth.callback.CallbackHandler getCallbackHandler()
          Get the CallbackHandler to use with the LoginContext
 java.lang.String getJaasLoginModuleName()
          Get the JAAS Login module name to use.
 java.lang.String getServiceName()
          Get the name of the service to use when contacting the KDC.
 void setCallbackHandler(javax.security.auth.callback.CallbackHandler callbackHandler)
          Set the CallbackHandler to use with the LoginContext.
 void setJaasLoginModuleName(java.lang.String jaasLoginModuleName)
          Set the JAAS Login module name to use.
 void setServiceName(java.lang.String serviceName)
          The name of the service to use when contacting the KDC.
 Credential validate(Credential credential, RequestData data)
          Validate the credential argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KerberosTokenValidator

public KerberosTokenValidator()
Method Detail

getJaasLoginModuleName

public java.lang.String getJaasLoginModuleName()
Get the JAAS Login module name to use.

Returns:
the JAAS Login module name to use

setJaasLoginModuleName

public void setJaasLoginModuleName(java.lang.String jaasLoginModuleName)
Set the JAAS Login module name to use.

Parameters:
jaasLoginModuleName - the JAAS Login module name to use

getCallbackHandler

public javax.security.auth.callback.CallbackHandler getCallbackHandler()
Get the CallbackHandler to use with the LoginContext

Returns:
the CallbackHandler to use with the LoginContext

setCallbackHandler

public void setCallbackHandler(javax.security.auth.callback.CallbackHandler callbackHandler)
Set the CallbackHandler to use with the LoginContext. It can be null.

Parameters:
callbackHandler - the CallbackHandler to use with the LoginContext

setServiceName

public void setServiceName(java.lang.String serviceName)
The name of the service to use when contacting the KDC. This value can be null, in which case it defaults to the current principal name.

Parameters:
serviceName - the name of the service to use when contacting the KDC

getServiceName

public java.lang.String getServiceName()
Get the name of the service to use when contacting the KDC. This value can be null, in which case it defaults to the current principal name.

Returns:
the name of the service to use when contacting the KDC

validate

public Credential validate(Credential credential,
                           RequestData data)
                    throws WSSecurityException
Validate the credential argument. It must contain a non-null BinarySecurityToken.

Specified by:
validate in interface Validator
Parameters:
credential - the Credential to be validated
data - the RequestData associated with the request
Returns:
a validated Credential
Throws:
WSSecurityException - on a failed validation


Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.