org.apache.ws.security
Class WSDocInfo

java.lang.Object
  extended by org.apache.ws.security.WSDocInfo

public class WSDocInfo
extends java.lang.Object


Constructor Summary
WSDocInfo(org.w3c.dom.Document doc)
           
 
Method Summary
 void clear()
          Clears the info data except the hash code
 org.w3c.dom.Element getAssertion()
           
 org.w3c.dom.Element getBst(java.lang.String uri)
          Get a BinarySecurityToken for the given Id
 Crypto getCrypto()
           
 org.w3c.dom.Document getDocument()
           
 Processor getProcessor(java.lang.String id)
          Get a Processor for the given Id
 org.w3c.dom.Element getSecurityTokenReference(java.lang.String uri)
          Get a SecurityTokenReference for the given (wsu) Id
 void setAssertion(org.w3c.dom.Element assertion)
           
 void setBst(org.w3c.dom.Element elem)
           
 void setCrypto(Crypto crypto)
           
 void setProcessor(Processor p)
          Store a Processor for later access.
 void setSecurityTokenReference(org.w3c.dom.Element securityTokenRef)
          Set a SecurityTokenReference element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSDocInfo

public WSDocInfo(org.w3c.dom.Document doc)
Method Detail

setSecurityTokenReference

public void setSecurityTokenReference(org.w3c.dom.Element securityTokenRef)
Set a SecurityTokenReference element.


getSecurityTokenReference

public org.w3c.dom.Element getSecurityTokenReference(java.lang.String uri)
Get a SecurityTokenReference for the given (wsu) Id

Parameters:
uri - is the relative uri (starts with #) of the id
Returns:
the STR element or null if nothing found

clear

public void clear()
Clears the info data except the hash code


getBst

public org.w3c.dom.Element getBst(java.lang.String uri)
Get a BinarySecurityToken for the given Id

Parameters:
uri - is the relative uri (starts with #) of the id
Returns:
the BST element or null if nothing found

getProcessor

public Processor getProcessor(java.lang.String id)
Get a Processor for the given Id

Parameters:
id - is the Id to look for
Returns:
the Security processor identified with this Id or null if nothing found

setProcessor

public void setProcessor(Processor p)
Store a Processor for later access.

Parameters:
p - is the Processor to store

getCrypto

public Crypto getCrypto()
Returns:
the signature crypto class used to process the signature/verify

getDocument

public org.w3c.dom.Document getDocument()
Returns:
the document

setBst

public void setBst(org.w3c.dom.Element elem)
Parameters:
elem - is the BinarySecurityToken to store

setCrypto

public void setCrypto(Crypto crypto)
Parameters:
crypto - is the signature crypto class used to process signature/verify

getAssertion

public org.w3c.dom.Element getAssertion()
Returns:
Returns the assertion.

setAssertion

public void setAssertion(org.w3c.dom.Element assertion)
Parameters:
assertion - The assertion to set.


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