Class SecurityUtils


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

      • SecurityUtils

        public SecurityUtils()
    • Method Detail

      • 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.