Package org.apache.cxf.sts
Class SignatureProperties
- java.lang.Object
-
- org.apache.cxf.sts.SignatureProperties
-
public class SignatureProperties extends Object
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 Constructor Description SignatureProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAcceptedC14nAlgorithms()Get the list of accepted c14n algorithms.List<String>getAcceptedSignatureAlgorithms()Get the list of accepted signature algorithms.StringgetC14nAlgorithm()Get the c14n algorithm to useStringgetDigestAlgorithm()Get the Digest algorithm to use for SignaturelonggetKeySize()Get the key size to use when generating a symmetric key.longgetMaximumKeySize()Get the maximum key size to use when generating a symmetric key to sign an issued token.longgetMinimumKeySize()Get the minimum key size to use when generating a symmetric key.StringgetSignatureAlgorithm()Get the signature algorithm to usebooleanisUseKeyValue()Get 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.
-
-
-
Method Detail
-
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
public String getSignatureAlgorithm()
Get the signature algorithm to use
-
setSignatureAlgorithm
public void setSignatureAlgorithm(String signatureAlgorithm)
Set the signature algorithm to use
-
getC14nAlgorithm
public String getC14nAlgorithm()
Get the c14n algorithm to use
-
setC14nAlgorithm
public void setC14nAlgorithm(String c14nAlgorithm)
Set the c14n algorithm to use
-
getAcceptedSignatureAlgorithms
public List<String> 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
public void setAcceptedSignatureAlgorithms(List<String> acceptedSignatureAlgorithms)
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
public List<String> 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
public void setAcceptedC14nAlgorithms(List<String> acceptedC14nAlgorithms)
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
public String getDigestAlgorithm()
Get the Digest algorithm to use for Signature- Returns:
- the Digest algorithm to use for Signature
-
setDigestAlgorithm
public void setDigestAlgorithm(String digestAlgorithm)
Set the Digest algorithm to use for Signature- Parameters:
digestAlgorithm- the Digest algorithm to use for Signature
-
-