org.apache.ws.security.processor
Class KerberosTokenProcessor

java.lang.Object
  extended by org.apache.ws.security.processor.KerberosTokenProcessor
All Implemented Interfaces:
Processor

public class KerberosTokenProcessor
extends Object
implements Processor


Constructor Summary
KerberosTokenProcessor(Vector returnResults)
           
 
Method Summary
 String getId()
          Get the Id of the processor.
 KerberosTokenPrincipal getLastPrincipalFound()
           
protected  SecretKey getSessionKey(byte[] serviceTicket)
           
 void handleToken(Element elem, Crypto crypto, Crypto decCrypto, CallbackHandler handler, WSDocInfo wsDocInfo, Vector returnResults, WSSConfig wsc)
           
protected  KerberosTokenPrincipal validateToken(Element elem, Crypto crypto, X509Certificate[] returnCert, Set returnElements, Set protectedElements, byte[][] signatureValue, CallbackHandler handler)
           
protected  Principal verifyXMLSignature(Element elem, Crypto crypto, X509Certificate[] returnCert, Set returnElements, List protectedElements, byte[][] signatureValue, CallbackHandler cb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KerberosTokenProcessor

public KerberosTokenProcessor(Vector returnResults)
Parameters:
returnResults -
Method Detail

handleToken

public void handleToken(Element elem,
                        Crypto crypto,
                        Crypto decCrypto,
                        CallbackHandler handler,
                        WSDocInfo wsDocInfo,
                        Vector returnResults,
                        WSSConfig wsc)
                 throws WSSecurityException
Specified by:
handleToken in interface Processor
Throws:
WSSecurityException

validateToken

protected KerberosTokenPrincipal validateToken(Element elem,
                                               Crypto crypto,
                                               X509Certificate[] returnCert,
                                               Set returnElements,
                                               Set protectedElements,
                                               byte[][] signatureValue,
                                               CallbackHandler handler)
                                        throws WSSecurityException
Parameters:
elem -
crypto -
returnCert -
returnElements -
protectedElements -
signatureValue -
handler -
Returns:
Throws:
WSSecurityException

verifyXMLSignature

protected Principal verifyXMLSignature(Element elem,
                                       Crypto crypto,
                                       X509Certificate[] returnCert,
                                       Set returnElements,
                                       List protectedElements,
                                       byte[][] signatureValue,
                                       CallbackHandler cb)
                                throws WSSecurityException
Parameters:
elem -
crypto -
returnCert -
returnElements -
protectedElements -
signatureValue -
cb -
Returns:
Throws:
WSSecurityException

getSessionKey

protected SecretKey getSessionKey(byte[] serviceTicket)
                           throws Exception
Returns:
Throws:
Exception

getId

public String getId()
Description copied from interface: Processor
Get the Id of the processor.

Specified by:
getId in interface Processor
Returns:
The Id string

getLastPrincipalFound

public KerberosTokenPrincipal getLastPrincipalFound()
Returns:


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