org.apache.ws.security.processor
Class DerivedKeyTokenProcessor

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

public class DerivedKeyTokenProcessor
extends Object
implements Processor

The processor to process wsc:DerivedKeyToken.

Author:
Ruchith Fernando (ruchith.fernando@gmail.com)

Constructor Summary
DerivedKeyTokenProcessor()
           
 
Method Summary
 DerivedKeyToken getDerivedKeyToken()
          Return the DerivedKeyToken object
 String getId()
          Returns the wsu:Id of the DerivedKeyToken
 byte[] getKeyBytes()
           
 byte[] getKeyBytes(int len)
          Get the derived key bytes for a given length
 void handleToken(org.w3c.dom.Element elem, Crypto crypto, Crypto decCrypto, javax.security.auth.callback.CallbackHandler cb, WSDocInfo wsDocInfo, Vector returnResults, WSSConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DerivedKeyTokenProcessor

public DerivedKeyTokenProcessor()
Method Detail

handleToken

public void handleToken(org.w3c.dom.Element elem,
                        Crypto crypto,
                        Crypto decCrypto,
                        javax.security.auth.callback.CallbackHandler cb,
                        WSDocInfo wsDocInfo,
                        Vector returnResults,
                        WSSConfig config)
                 throws WSSecurityException
Specified by:
handleToken in interface Processor
Throws:
WSSecurityException

getId

public String getId()
Returns the wsu:Id of the DerivedKeyToken

Specified by:
getId in interface Processor
Returns:
The Id string
See Also:
Processor.getId()

getKeyBytes

public byte[] getKeyBytes()
Returns:
Returns the keyBytes.

getKeyBytes

public byte[] getKeyBytes(int len)
                   throws WSSecurityException
Get the derived key bytes for a given length

Returns:
Returns the keyBytes.
Throws:
WSSecurityException

getDerivedKeyToken

public DerivedKeyToken getDerivedKeyToken()
Return the DerivedKeyToken object



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