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 StringgetEncAlgo(Node encBodyData)static KeyValuegetKeyValue(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 booleanisContent(Node encBodyData)static PublicKeyparseKeyValue(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
-
-