Class SecurityUtils
- java.lang.Object
-
- com.sun.identity.liberty.ws.security.SecurityUtils
-
public class SecurityUtils extends Object
This class has common utility methods .
-
-
Constructor Summary
Constructors Constructor Description SecurityUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CertificategetCertificate(BinarySecurityToken binarySecurityToken)Get Certificate from X509 Security Token Profile document.static CertificategetCertificate(SecurityAssertion assertion)Gets the Certificate from theAssertion.static XMLSignatureManagergetSignatureManager()Returns XML Signature instance.static ElementsignMessage(Message m)static booleanverifyMessage(Message m)Verify all the signatures of the of Message object passed from Soap Binding.
-
-
-
Method Detail
-
verifyMessage
public static boolean verifyMessage(Message m)
Verify all the signatures of the of Message object passed from Soap Binding.- Parameters:
m- Message object whose signature to be verified- Returns:
- true if the signature is verified.
-
getCertificate
public static Certificate getCertificate(BinarySecurityToken binarySecurityToken)
Get Certificate from X509 Security Token Profile document.- Parameters:
binarySecurityToken- the Security Token.- Returns:
- X509 Certiticate object.
-
getCertificate
public static Certificate getCertificate(SecurityAssertion assertion)
Gets the Certificate from theAssertion.- Parameters:
assertion- the SAMLAssertion.- Returns:
X509Certificateobject.
-
getSignatureManager
public static XMLSignatureManager getSignatureManager()
Returns XML Signature instance.
-
-