org.apache.ws.security.transform
Class STRTransformUtil

java.lang.Object
  extended by org.apache.ws.security.transform.STRTransformUtil

public class STRTransformUtil
extends Object

Utility class exposing the dereferencing logic of the STRTransform implementation.


Method Summary
protected static org.w3c.dom.Element createBSTX509(org.w3c.dom.Document doc, X509Certificate cert, org.w3c.dom.Element secRefE)
           
static org.w3c.dom.Element dereferenceSTR(org.w3c.dom.Document doc, SecurityTokenReference secRef, WSDocInfo wsDocInfo)
          Retrieves the element representing the referenced content of a STR.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

dereferenceSTR

public static org.w3c.dom.Element dereferenceSTR(org.w3c.dom.Document doc,
                                                 SecurityTokenReference secRef,
                                                 WSDocInfo wsDocInfo)
                                          throws WSSecurityException
Retrieves the element representing the referenced content of a STR.

Returns:
the element representing the referenced content. The element is either extracted from doc or a new element is created in the case of a key identifier or issuer serial STR. null if secRef does not contain a direct reference, key identifier, or issuer serial.
Throws:
WSSecurityException - If an issuer serial or key identifier is used in the STR and the certificate cannot be resolved from the crypto configuration or if there is an error working with the resolved cert

createBSTX509

protected static org.w3c.dom.Element createBSTX509(org.w3c.dom.Document doc,
                                                   X509Certificate cert,
                                                   org.w3c.dom.Element secRefE)
                                            throws WSSecurityException
Throws:
WSSecurityException


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