Package org.apache.wss4j.dom.util
Class X509Util
- java.lang.Object
-
- org.apache.wss4j.dom.util.X509Util
-
public final class X509Util extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getEncAlgo(Node encBodyData)
static KeyValue
getKeyValue(Element keyInfoElement, XMLSignatureFactory signatureFactory)
Get the KeyValue object from the KeyInfo DOM element if it existsstatic byte[]
getSecretKey(Element keyInfoElem, String algorithm, CallbackHandler cb)
static boolean
isContent(Node encBodyData)
static PublicKey
parseKeyValue(Element keyInfoElement, XMLSignatureFactory signatureFactory)
-
-
-
Method Detail
-
isContent
public static boolean isContent(Node encBodyData)
-
getEncAlgo
public static String getEncAlgo(Node encBodyData) throws WSSecurityException
- Throws:
WSSecurityException
-
getSecretKey
public static byte[] getSecretKey(Element keyInfoElem, String algorithm, CallbackHandler cb) throws WSSecurityException
- Throws:
WSSecurityException
-
parseKeyValue
public static PublicKey parseKeyValue(Element keyInfoElement, XMLSignatureFactory signatureFactory) throws WSSecurityException
- Throws:
WSSecurityException
-
getKeyValue
public static KeyValue getKeyValue(Element keyInfoElement, XMLSignatureFactory signatureFactory) throws MarshalException
Get the KeyValue object from the KeyInfo DOM element if it exists- Throws:
MarshalException
-
-