Package org.opensaml.xmlsec
Class SignatureSigningParameters
java.lang.Object
org.opensaml.xmlsec.SignatureSigningParameters
The effective parameters to use when generating an XML signature.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate KeyInfoGenerator
The KeyInfo generator.private String
The signature algorithm URI.private String
The signature canonicalization algorithm URI.private Integer
The signature HMAC output length value.private String
The signature reference canonicalization transform algorithm.private String
The signature reference digest method URI.private Credential
The signing credential. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the KeyInfoGenerator to use when generating the Signature/KeyInfo.Get the signature algorithm URI to use when signing.Get a canonicalization algorithm URI suitable for use as a Signature CanonicalizationMethod value.Get the value to be used as the Signature SignatureMethod HMACOutputLength value, used only when signing with an HMAC algorithm.Get a canonicalization algorithm URI suitable for use as a Signature Reference Transform value.Get a digest method algorithm URI suitable for use as a Signature Reference DigestMethod value.Get the signing credential to use when signing.void
setKeyInfoGenerator
(KeyInfoGenerator generator) Set the KeyInfoGenerator to use when generating the Signature/KeyInfo.void
Set the signature algorithm URI to use when signing.void
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
Get a canonicalization algorithm URI suitable for use as a Signature Reference Transform value.void
Set a digest method algorithm URI suitable for use as a Signature Reference DigestMethod value.void
setSigningCredential
(Credential credential) Set the signing credential to use when signing.
-
Field Details
-
signingCredential
The signing credential. -
signatureAlgorithmURI
The signature algorithm URI. -
signatureReferenceDigestMethod
The signature reference digest method URI. -
signatureReferenceCanonicalizationAlgorithm
The signature reference canonicalization transform algorithm. -
signatureCanonicalizationAlgorithm
The signature canonicalization algorithm URI. -
signatureHMACOutputLength
The signature HMAC output length value. -
keyInfoGenerator
The KeyInfo generator.
-
-
Constructor Details
-
SignatureSigningParameters
public SignatureSigningParameters()
-
-
Method Details
-
getSigningCredential
Get the signing credential to use when signing.- Returns:
- the signing credential
-
setSigningCredential
Set the signing credential to use when signing.- Parameters:
credential
- the signing credential
-
getSignatureAlgorithm
Get the signature algorithm URI to use when signing.- Returns:
- a signature algorithm URI mapping
-
setSignatureAlgorithm
Set the signature algorithm URI to use when signing.- Parameters:
uri
- a signature algorithm URI mapping
-
getSignatureReferenceDigestMethod
Get a digest method algorithm URI suitable for use as a Signature Reference DigestMethod value.- Returns:
- a digest method algorithm URI
-
setSignatureReferenceDigestMethod
Set a digest method algorithm URI suitable for use as a Signature Reference DigestMethod value.- Parameters:
uri
- a digest method algorithm URI
-
getSignatureReferenceCanonicalizationAlgorithm
Get a canonicalization algorithm URI suitable for use as a Signature Reference Transform value.- Returns:
- a digest method algorithm URI
-
setSignatureReferenceCanonicalizationAlgorithm
Get a canonicalization algorithm URI suitable for use as a Signature Reference Transform value.- Parameters:
uri
- a canonicalization algorithm URI
-
getSignatureCanonicalizationAlgorithm
Get a canonicalization algorithm URI suitable for use as a Signature CanonicalizationMethod value.- Returns:
- a canonicalization algorithm URI
-
setSignatureCanonicalizationAlgorithm
Set a canonicalization algorithm URI suitable for use as a Signature CanonicalizationMethod value.- Parameters:
uri
- a canonicalization algorithm URI
-
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.- Returns:
- the configured HMAC output length value
-
setSignatureHMACOutputLength
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 configured HMAC output length value
-
getKeyInfoGenerator
Get the KeyInfoGenerator to use when generating the Signature/KeyInfo.- Returns:
- the KeyInfoGenerator instance
-
setKeyInfoGenerator
Set the KeyInfoGenerator to use when generating the Signature/KeyInfo.- Parameters:
generator
- the KeyInfoGenerator instance
-