public interface SecurityConfiguration
Modifier and Type | Method and Description |
---|---|
String |
getAutoGeneratedDataEncryptionKeyAlgorithmURI()
Get the encryption algorithm URI to be used when auto-generating random data encryption keys.
|
String |
getDataEncryptionAlgorithmURI(Credential credential)
Get the encryption algorithm URI for the encryption key contained within the specified credential.
|
String |
getDataEncryptionAlgorithmURI(String jcaAlgorithmName,
Integer keyLength)
Get the encryption algorithm URI for the specified JCA key algorithm name and optional key
length.
|
KeyInfoCredentialResolver |
getDefaultKeyInfoCredentialResolver()
Get the default KeyInfoCredentialResolver configuration.
|
DSAParams |
getDSAParams(int keyLength)
Get a DSA parameters instance which defines the default DSA key information to be used
within a DSA "key family".
|
KeyInfoCredentialResolver |
getKeyInfoCredentialResolver(String name)
Get the KeyInfoCredentialResolver associated with the named configuration.
|
NamedKeyInfoGeneratorManager |
getKeyInfoGeneratorManager()
Get the manager for named KeyInfoGenerator instances.
|
String |
getKeyTransportEncryptionAlgorithmURI(Credential credential,
String wrappedKeyAlgorithm)
Get the key transport encryption algorithm URI for the encryption key contained within the specified credential.
|
String |
getKeyTransportEncryptionAlgorithmURI(String jcaAlgorithmName,
Integer keyLength,
String wrappedKeyAlgorithm)
Get the key transport encryption algorithm URI for the specified JCA key algorithm name, optional key
length and optional JCA key algorithm name of the key to be encrypted.
|
String |
getSignatureAlgorithmURI(Credential credential)
Get the signature algorithm URI for the signing key contained within the specified credential.
|
String |
getSignatureAlgorithmURI(String jcaAlgorithmName)
Get the signature algorithm URI for the specified JCA key algorithm name.
|
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.
|
String |
getSignatureReferenceDigestMethod()
Get a digest method algorithm URI suitable for use as a Signature Reference DigestMethod value.
|
String getSignatureAlgorithmURI(String jcaAlgorithmName)
jcaAlgorithmName
- a JCA key algorithm nameString getSignatureAlgorithmURI(Credential credential)
credential
- a credential containing a signing keyString getSignatureReferenceDigestMethod()
String getSignatureCanonicalizationAlgorithm()
Integer getSignatureHMACOutputLength()
String getDataEncryptionAlgorithmURI(String jcaAlgorithmName, Integer keyLength)
null
as the key length will return the default algorithm URI for the specified
JCA algorithm, if a default is configured. If no mapping for the specified key length is available,
the default mapping will be returned.jcaAlgorithmName
- a JCA key algorithm namekeyLength
- optional key length parameterString getDataEncryptionAlgorithmURI(Credential credential)
credential
- a credential containing an encryption keyString getKeyTransportEncryptionAlgorithmURI(String jcaAlgorithmName, Integer keyLength, String wrappedKeyAlgorithm)
jcaAlgorithmName
- a JCA key algorithm name for the key encryption keykeyLength
- optional key length parameterwrappedKeyAlgorithm
- a JCA key algorithm name for the key to be encryptedString getKeyTransportEncryptionAlgorithmURI(Credential credential, String wrappedKeyAlgorithm)
credential
- a credential containing an encryption keywrappedKeyAlgorithm
- the JCA key algorithm name of the key being encryptedString getAutoGeneratedDataEncryptionKeyAlgorithmURI()
DSAParams getDSAParams(int keyLength)
keyLength
- length of the DSA key whose parameters are desiredNamedKeyInfoGeneratorManager getKeyInfoGeneratorManager()
KeyInfoCredentialResolver getKeyInfoCredentialResolver(String name)
name
- the name of the resolver configuration to returnKeyInfoCredentialResolver getDefaultKeyInfoCredentialResolver()
Copyright © 2018 JBoss by Red Hat. All rights reserved.