org.apache.ws.security.transform
Class STRTransformUtil
java.lang.Object
org.apache.ws.security.transform.STRTransformUtil
public class STRTransformUtil
- extends Object
Utility class exposing the dereferencing logic of the STRTransform
implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dereferenceSTR
public static Element dereferenceSTR(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
public static Element createBSTX509(Document doc,
X509Certificate cert,
Element secRefE)
throws WSSecurityException
- Throws:
WSSecurityException
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.