Class STRParserResult


  • public class STRParserResult
    extends Object
    This class holds the results from parsing a SecurityTokenReference Element by a STRParser implementation.
    • Constructor Detail

      • STRParserResult

        public STRParserResult()
    • Method Detail

      • getCertificates

        public X509Certificate[] getCertificates()
        Get the X509Certificates associated with this SecurityTokenReference
        Returns:
        the X509Certificates associated with this SecurityTokenReference
      • getPrincipal

        public Principal getPrincipal()
        Get the Principal associated with this SecurityTokenReference
        Returns:
        the Principal associated with this SecurityTokenReference
      • getPublicKey

        public PublicKey getPublicKey()
        Get the PublicKey associated with this SecurityTokenReference
        Returns:
        the PublicKey associated with this SecurityTokenReference
      • getSecretKey

        public byte[] getSecretKey()
        Get the Secret Key associated with this SecurityTokenReference
        Returns:
        the Secret Key associated with this SecurityTokenReference
      • isTrustedCredential

        public boolean isTrustedCredential()
        Get whether the returned credential is already trusted or not. This is currently applicable in the case of a credential extracted from a trusted HOK SAML Assertion, and a BinarySecurityToken that has been processed by a Validator. In these cases, the SignatureProcessor does not need to verify trust on the credential.
        Returns:
        true if trust has already been verified on the returned Credential
      • getCertificatesReferenceType

        public STRParser.REFERENCE_TYPE getCertificatesReferenceType()
        Get how the certificates were referenced
        Returns:
        how the certificates were referenced
      • setSecretKey

        public void setSecretKey​(byte[] secretKey)
      • setPublicKey

        public void setPublicKey​(PublicKey publicKey)
      • setPrincipal

        public void setPrincipal​(Principal principal)
      • setTrustedCredential

        public void setTrustedCredential​(boolean trustedCredential)