public class BasicSignatureSigningConfiguration extends BasicWhitelistBlacklistConfiguration implements SignatureSigningConfiguration
SignatureSigningConfiguration
.WhitelistBlacklistConfiguration.Precedence
DEFAULT_PRECEDENCE
Constructor and Description |
---|
BasicSignatureSigningConfiguration()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
NamedKeyInfoGeneratorManager |
getKeyInfoGeneratorManager()
Get the manager for named KeyInfoGenerator instances.
|
List<String> |
getSignatureAlgorithms()
Get the list of preferred signature algorithm URIs, in preference order.
|
String |
getSignatureCanonicalizationAlgorithm()
Get a canonicalization algorithm URI suitable for use as a Signature CanonicalizationMethod value.
|
Integer |
getSignatureHMACOutputLength()
Get the value to be used as the Signature SignatureMethod HMACOutputLength value, used
only when signing with an HMAC algorithm.
|
List<String> |
getSignatureReferenceDigestMethods()
Get the list of digest method algorithm URIs suitable for use as a Signature Reference DigestMethod value,
in preference order.
|
List<Credential> |
getSigningCredentials()
Get the list of signing credentials to use when signing, in preference order.
|
void |
setKeyInfoGeneratorManager(NamedKeyInfoGeneratorManager keyInfoManager)
Set the manager for named KeyInfoGenerator instances.
|
void |
setSignatureAlgorithms(List<String> algorithms)
Set the signature algorithms to use when signing.
|
void |
setSignatureCanonicalizationAlgorithm(String algorithmURI)
Set a canonicalization algorithm URI suitable for use as a Signature CanonicalizationMethod value.
|
void |
setSignatureHMACOutputLength(Integer length)
Set the value to be used as the Signature SignatureMethod HMACOutputLength value, used
only when signing with an HMAC algorithm.
|
void |
setSignatureReferenceDigestMethods(List<String> algorithms)
Set a digest method algorithm URI suitable for use as a Signature Reference DigestMethod value.
|
void |
setSigningCredentials(List<Credential> credentials)
Set the signing credentials to use when signing.
|
getBlacklistedAlgorithms, getWhitelistBlacklistPrecedence, getWhitelistedAlgorithms, isBlacklistMerge, isWhitelistMerge, setBlacklistedAlgorithms, setBlacklistMerge, setWhitelistBlacklistPrecedence, setWhitelistedAlgorithms, setWhitelistMerge
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBlacklistedAlgorithms, getWhitelistBlacklistPrecedence, getWhitelistedAlgorithms, isBlacklistMerge, isWhitelistMerge
public BasicSignatureSigningConfiguration()
@Nonnull @NonnullElements @Unmodifiable @NotLive public List<Credential> getSigningCredentials()
getSigningCredentials
in interface SignatureSigningConfiguration
public void setSigningCredentials(@Nullable List<Credential> credentials)
credentials
- the list of signing credentials@Nonnull @NonnullElements @Unmodifiable @NotLive public List<String> getSignatureAlgorithms()
getSignatureAlgorithms
in interface SignatureSigningConfiguration
public void setSignatureAlgorithms(@Nullable List<String> algorithms)
algorithms
- the list of signature algorithms@Nonnull @NonnullElements @Unmodifiable @NotLive public List<String> getSignatureReferenceDigestMethods()
getSignatureReferenceDigestMethods
in interface SignatureSigningConfiguration
public void setSignatureReferenceDigestMethods(@Nullable List<String> algorithms)
algorithms
- a list of digest method algorithm URIs@Nullable public String getSignatureCanonicalizationAlgorithm()
getSignatureCanonicalizationAlgorithm
in interface SignatureSigningConfiguration
public void setSignatureCanonicalizationAlgorithm(@Nullable String algorithmURI)
algorithmURI
- a canonicalization algorithm URI@Nullable public Integer getSignatureHMACOutputLength()
getSignatureHMACOutputLength
in interface SignatureSigningConfiguration
public void setSignatureHMACOutputLength(@Nullable Integer length)
length
- the HMAC output length value to use when performing HMAC signing (may be null)@Nullable public NamedKeyInfoGeneratorManager getKeyInfoGeneratorManager()
getKeyInfoGeneratorManager
in interface SignatureSigningConfiguration
public void setKeyInfoGeneratorManager(@Nullable NamedKeyInfoGeneratorManager keyInfoManager)
keyInfoManager
- the KeyInfoGenerator manager to useCopyright © 2016. All rights reserved.