Class SecurityUtils

java.lang.Object
com.sun.identity.liberty.ws.security.SecurityUtils

public class SecurityUtils extends Object
This class has common utility methods .
  • Constructor Details

    • SecurityUtils

      public SecurityUtils()
  • Method Details

    • getCertificate

      public static Certificate getCertificate(BinarySecurityToken binarySecurityToken)
      Get Certificate from X509 Security Token Profile document.
      Parameters:
      binarySecurityToken - the Security Token.
      Returns:
      X509 Certificate object.
    • getCertificate

      public static Certificate getCertificate(SecurityAssertion assertion)
      Gets the Certificate from the Assertion.
      Parameters:
      assertion - the SAML Assertion.
      Returns:
      X509Certificate object.