org.apache.ws.sandbox.security.trust.message.token
Class RequestedProofToken

java.lang.Object
  extended byorg.apache.ws.sandbox.security.trust.message.token.RequestedProofToken

public class RequestedProofToken
extends java.lang.Object

Author:
Dimuthu Leelarathne. (muthulee@yahoo.com), Ruchith Fernando

Field Summary
static javax.xml.namespace.QName TOKEN
           
 
Constructor Summary
RequestedProofToken(org.w3c.dom.Document doc)
          Constructor.
RequestedProofToken(org.w3c.dom.Element elem)
          COnstructor
 
Method Summary
 void addToken(org.w3c.dom.Element childToken)
           
 org.w3c.dom.Document build(org.w3c.dom.Document doc, Crypto crypto, java.lang.String user, org.w3c.dom.Element parentNode)
           
 void doDecryption(java.lang.String callback, Crypto crypto)
          Method doDecryption
 void doEncryptProof(org.w3c.dom.Document doc, Crypto crypto, java.lang.String userInfo)
          Method doEncryptProof
 org.w3c.dom.Element getElement()
           
 byte[] getSharedSecret()
           
 void removeToken(org.w3c.dom.Element childToken)
           
 void setElement(org.w3c.dom.Element element)
           
 void setSharedSecret(byte[] bs)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TOKEN

public static final javax.xml.namespace.QName TOKEN
Constructor Detail

RequestedProofToken

public RequestedProofToken(org.w3c.dom.Document doc)
                    throws WSSecurityException
Constructor.

Parameters:
doc - is the SOAP envelop.
Throws:
WSSecurityException

RequestedProofToken

public RequestedProofToken(org.w3c.dom.Element elem)
                    throws WSSecurityException
COnstructor

Parameters:
elem -
Throws:
WSSecurityException
Method Detail

doDecryption

public void doDecryption(java.lang.String callback,
                         Crypto crypto)
                  throws WSSecurityException
Method doDecryption

Parameters:
callback -
crypto -
Throws:
WSSecurityException

doEncryptProof

public void doEncryptProof(org.w3c.dom.Document doc,
                           Crypto crypto,
                           java.lang.String userInfo)
                    throws WSSecurityException
Method doEncryptProof

Parameters:
doc -
Throws:
WSSecurityException

getElement

public org.w3c.dom.Element getElement()

setElement

public void setElement(org.w3c.dom.Element element)

toString

public java.lang.String toString()

addToken

public void addToken(org.w3c.dom.Element childToken)

removeToken

public void removeToken(org.w3c.dom.Element childToken)

getSharedSecret

public byte[] getSharedSecret()
Returns:

setSharedSecret

public void setSharedSecret(byte[] bs)
Parameters:
bs -

build

public org.w3c.dom.Document build(org.w3c.dom.Document doc,
                                  Crypto crypto,
                                  java.lang.String user,
                                  org.w3c.dom.Element parentNode)
                           throws WSSecurityException
Throws:
WSSecurityException


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.