Class BasicSignatureSigningConfiguration

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • signatureReferenceDigestMethods

        @Nonnull
        @NonnullElements
        private List<String> signatureReferenceDigestMethods
        Digest method algorithm URIs.
      • signatureReferenceCanonicalizationAlgorithm

        @Nullable
        private String signatureReferenceCanonicalizationAlgorithm
        The signature reference canonicalization transform algorithm.
      • signatureCanonicalization

        @Nullable
        private String signatureCanonicalization
        Signature canonicalization algorithm URI.
      • signatureHMACOutputLength

        @Nullable
        private Integer signatureHMACOutputLength
        Signature HMAC output length.
      • keyInfoGeneratorManager

        @Nullable
        private NamedKeyInfoGeneratorManager keyInfoGeneratorManager
        Manager for named KeyInfoGenerator instances.
    • Constructor Detail

      • BasicSignatureSigningConfiguration

        public BasicSignatureSigningConfiguration()
        Constructor.
    • Method Detail

      • setSigningCredentials

        public void setSigningCredentials​(@Nullable @NonnullElements
                                          List<Credential> credentials)
        Set the signing credentials to use when signing.
        Parameters:
        credentials - the list of signing credentials
      • setSignatureAlgorithms

        public void setSignatureAlgorithms​(@Nullable @NonnullElements
                                           List<String> algorithms)
        Set the signature algorithms to use when signing.
        Parameters:
        algorithms - the list of signature algorithms
      • setSignatureReferenceDigestMethods

        public void setSignatureReferenceDigestMethods​(@Nullable @NonnullElements
                                                       List<String> algorithms)
        Set a digest method algorithm URI suitable for use as a Signature Reference DigestMethod value.
        Parameters:
        algorithms - a list of digest method algorithm URIs
      • setSignatureReferenceCanonicalizationAlgorithm

        public void setSignatureReferenceCanonicalizationAlgorithm​(@Nullable
                                                                   String uri)
        Get a canonicalization algorithm URI suitable for use as a Signature Reference Transform value.
        Parameters:
        uri - a canonicalization algorithm URI
      • setSignatureCanonicalizationAlgorithm

        public void setSignatureCanonicalizationAlgorithm​(@Nullable
                                                          String algorithmURI)
        Set a canonicalization algorithm URI suitable for use as a Signature CanonicalizationMethod value.
        Parameters:
        algorithmURI - a canonicalization algorithm URI
      • getSignatureHMACOutputLength

        @Nullable
        public Integer getSignatureHMACOutputLength()
        Get the value to be used as the Signature SignatureMethod HMACOutputLength value, used only when signing with an HMAC algorithm. This value is optional when using HMAC.
        Specified by:
        getSignatureHMACOutputLength in interface SignatureSigningConfiguration
        Returns:
        the configured HMAC output length value
      • setSignatureHMACOutputLength

        public void setSignatureHMACOutputLength​(@Nullable
                                                 Integer length)
        Set the value to be used as the Signature SignatureMethod HMACOutputLength value, used only when signing with an HMAC algorithm. This value is optional when using HMAC.
        Parameters:
        length - the HMAC output length value to use when performing HMAC signing (may be null)
      • setKeyInfoGeneratorManager

        public void setKeyInfoGeneratorManager​(@Nullable
                                               NamedKeyInfoGeneratorManager keyInfoManager)
        Set the manager for named KeyInfoGenerator instances.
        Parameters:
        keyInfoManager - the KeyInfoGenerator manager to use