Package org.apache.cxf.sts
Class SignatureProperties
java.lang.Object
org.apache.cxf.sts.SignatureProperties
This class contains various configuration properties that can be used to sign an issued token,
or generate a symmetric key in the STS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of accepted c14n algorithms.Get the list of accepted signature algorithms.Get the c14n algorithm to useGet the Digest algorithm to use for SignaturelongGet the key size to use when generating a symmetric key.longGet the maximum key size to use when generating a symmetric key to sign an issued token.longGet the minimum key size to use when generating a symmetric key.Get the signature algorithm to usebooleanGet whether a KeyValue is used to refer to a a certificate used to sign an issued token.voidsetAcceptedC14nAlgorithms(List<String> acceptedC14nAlgorithms) Set the list of accepted c14n algorithms.voidsetAcceptedSignatureAlgorithms(List<String> acceptedSignatureAlgorithms) Set the list of accepted signature algorithms.voidsetC14nAlgorithm(String c14nAlgorithm) Set the c14n algorithm to usevoidsetDigestAlgorithm(String digestAlgorithm) Set the Digest algorithm to use for SignaturevoidsetKeySize(long keySize) Set the key size to use when generating a symmetric key.voidsetMaximumKeySize(long maximumKeySize) Set the maximum key size to use when generating a symmetric key to sign an issued token.voidsetMinimumKeySize(long minimumKeySize) Set the minimum key size to use when generating a symmetric key.voidsetSignatureAlgorithm(String signatureAlgorithm) Set the signature algorithm to usevoidsetUseKeyValue(boolean useKeyValue) Set whether a KeyValue is used to refer to a a certificate used to sign an issued token.
-
Constructor Details
-
SignatureProperties
public SignatureProperties()
-
-
Method Details
-
isUseKeyValue
public boolean isUseKeyValue()Get whether a KeyValue is used to refer to a a certificate used to sign an issued token. The default is false. -
setUseKeyValue
public void setUseKeyValue(boolean useKeyValue) Set whether a KeyValue is used to refer to a a certificate used to sign an issued token. The default is false. -
getKeySize
public long getKeySize()Get the key size to use when generating a symmetric key. The default is 256 bits. -
setKeySize
public void setKeySize(long keySize) Set the key size to use when generating a symmetric key. The default is 256 bits. -
getMinimumKeySize
public long getMinimumKeySize()Get the minimum key size to use when generating a symmetric key. The requestor can specify a KeySize value to use. The default is 128 bits. -
setMinimumKeySize
public void setMinimumKeySize(long minimumKeySize) Set the minimum key size to use when generating a symmetric key. The requestor can specify a KeySize value to use. The default is 128 bits. -
getMaximumKeySize
public long getMaximumKeySize()Get the maximum key size to use when generating a symmetric key to sign an issued token. The requestor can specify a KeySize value to use. The default is 512 bits. -
setMaximumKeySize
public void setMaximumKeySize(long maximumKeySize) Set the maximum key size to use when generating a symmetric key to sign an issued token. The requestor can specify a KeySize value to use. The default is 512 bits. -
getSignatureAlgorithm
Get the signature algorithm to use -
setSignatureAlgorithm
Set the signature algorithm to use -
getC14nAlgorithm
Get the c14n algorithm to use -
setC14nAlgorithm
Set the c14n algorithm to use -
getAcceptedSignatureAlgorithms
Get the list of accepted signature algorithms. A request can contain a wst:SignatureAlgorithm uri to use to sign an issued token. The algorithm specified must be contained in this list. The default algorithms are RSA-SHA1. -
setAcceptedSignatureAlgorithms
Set the list of accepted signature algorithms. A request can contain a wst:SignatureAlgorithm uri to use to sign an issued token. The algorithm specified must be contained in this list. The default algorithms are RSA-SHA1. -
getAcceptedC14nAlgorithms
Get the list of accepted c14n algorithms. A request can contain a wst:CanonicalizationAlgorithm uri to use for c14n in an issued token. The algorithm specified must be contained in this list. The default algorithms are C14N_EXCL_OMIT_COMMENTS. -
setAcceptedC14nAlgorithms
Set the list of accepted c14n algorithms. A request can contain a wst:CanonicalizationAlgorithm uri to use for c14n in an issued token. The algorithm specified must be contained in this list. The default algorithms are C14N_EXCL_OMIT_COMMENTS. -
getDigestAlgorithm
Get the Digest algorithm to use for Signature- Returns:
- the Digest algorithm to use for Signature
-
setDigestAlgorithm
Set the Digest algorithm to use for Signature- Parameters:
digestAlgorithm- the Digest algorithm to use for Signature
-