public class BasicSecurityConfiguration extends Object implements SecurityConfiguration
SecurityConfiguration
.修飾子とタイプ | クラスと説明 |
---|---|
protected class |
BasicSecurityConfiguration.DataEncryptionIndex
Class used as an index to the data encryption algorithm URI map.
|
protected class |
BasicSecurityConfiguration.KeyTransportEncryptionIndex
Class used as an index to the key transport encryption algorithm URI map.
|
修飾子とタイプ | フィールドと説明 |
---|---|
static String |
KEYINFO_RESOLVER_DEFAULT_CONFIG
The name of the KeyInfoCredentialResolver default config.
|
コンストラクタと説明 |
---|
BasicSecurityConfiguration()
Constructor.
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
deregisterDataEncryptionAlgorithmURI(String jcaAlgorithmName,
Integer keyLength)
Deregister a mapping for the specified JCA algorithm name.
|
void |
deregisterKeyInfoCredentialResolver(String name)
Deregister a named KeyInfoCredentialResolver configuration.
|
void |
deregisterKeyTransportEncryptionAlgorithmURI(String jcaAlgorithmName,
Integer keyLength,
String wrappedKeyAlgorithm)
Deregister a mapping for the specified JCA algorithm name.
|
void |
deregisterSignatureAlgorithmURI(String jcaAlgorithmName)
Deregister a mapping for the specified JCA algorithm name.
|
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.
|
void |
registerDataEncryptionAlgorithmURI(String jcaAlgorithmName,
Integer keyLength,
String algorithmURI)
Register a mapping from the specified JCA algorithm name to an encryption algorithm URI.
|
void |
registerKeyInfoCredentialResolver(String name,
KeyInfoCredentialResolver resolver)
Register a named KeyInfoCredentialResolver configuration.
|
void |
registerKeyTransportEncryptionAlgorithmURI(String jcaAlgorithmName,
Integer keyLength,
String wrappedKeyAlgorithm,
String algorithmURI)
Register a mapping from the specified JCA algorithm name to an encryption algorithm URI.
|
void |
registerSignatureAlgorithmURI(String jcaAlgorithmName,
String algorithmURI)
Register a mapping from the specified JCA algorithm name to a signature algorithm URI.
|
void |
setAutoGeneratedDataEncryptionKeyAlgorithmURI(String algorithmURI)
Set the encryption algorithm URI to be used when auto-generating random data encryption keys.
|
void |
setDefaultKeyInfoCredentialResolver(KeyInfoCredentialResolver resolver)
Set the default KeyInfoCredentialResolver config.
|
void |
setDSAParams(int keyLength,
DSAParams params)
Set a DSA parameters instance which defines the default DSA key information to be used
within a DSA "key family".
|
void |
setKeyInfoGeneratorManager(NamedKeyInfoGeneratorManager keyInfoManager)
Set the manager for named KeyInfoGenerator instances.
|
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 |
setSignatureReferenceDigestMethod(String algorithmURI)
Set a digest method algorithm URI suitable for use as a Signature Reference DigestMethod value.
|
public String getSignatureAlgorithmURI(String jcaAlgorithmName)
getSignatureAlgorithmURI
インタフェース内 SecurityConfiguration
jcaAlgorithmName
- a JCA key algorithm namepublic String getSignatureAlgorithmURI(Credential credential)
getSignatureAlgorithmURI
インタフェース内 SecurityConfiguration
credential
- a credential containing a signing keypublic void registerSignatureAlgorithmURI(String jcaAlgorithmName, String algorithmURI)
jcaAlgorithmName
- the JCA algorithm name to registeralgorithmURI
- the algorithm URI to registerpublic void deregisterSignatureAlgorithmURI(String jcaAlgorithmName)
jcaAlgorithmName
- the JCA algorithm name to deregisterpublic String getSignatureCanonicalizationAlgorithm()
getSignatureCanonicalizationAlgorithm
インタフェース内 SecurityConfiguration
public void setSignatureCanonicalizationAlgorithm(String algorithmURI)
algorithmURI
- a canonicalization algorithm URIpublic String getSignatureReferenceDigestMethod()
getSignatureReferenceDigestMethod
インタフェース内 SecurityConfiguration
public void setSignatureReferenceDigestMethod(String algorithmURI)
algorithmURI
- a digest method algorithm URIpublic Integer getSignatureHMACOutputLength()
getSignatureHMACOutputLength
インタフェース内 SecurityConfiguration
public void setSignatureHMACOutputLength(Integer length)
length
- the HMAC output length value to use when performing HMAC signing (may be null)public 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.getDataEncryptionAlgorithmURI
インタフェース内 SecurityConfiguration
jcaAlgorithmName
- a JCA key algorithm namekeyLength
- optional key length parameterpublic String getDataEncryptionAlgorithmURI(Credential credential)
getDataEncryptionAlgorithmURI
インタフェース内 SecurityConfiguration
credential
- a credential containing an encryption keypublic void registerDataEncryptionAlgorithmURI(String jcaAlgorithmName, Integer keyLength, String algorithmURI)
jcaAlgorithmName
- the JCA algorithm name to registerkeyLength
- the key length to register (may be null)algorithmURI
- the algorithm URI to registerpublic void deregisterDataEncryptionAlgorithmURI(String jcaAlgorithmName, Integer keyLength)
jcaAlgorithmName
- the JCA algorithm name to deregisterkeyLength
- the key length to deregister (may be null)public String getKeyTransportEncryptionAlgorithmURI(String jcaAlgorithmName, Integer keyLength, String wrappedKeyAlgorithm)
getKeyTransportEncryptionAlgorithmURI
インタフェース内 SecurityConfiguration
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 encryptedpublic String getKeyTransportEncryptionAlgorithmURI(Credential credential, String wrappedKeyAlgorithm)
getKeyTransportEncryptionAlgorithmURI
インタフェース内 SecurityConfiguration
credential
- a credential containing an encryption keywrappedKeyAlgorithm
- the JCA key algorithm name of the key being encryptedpublic void registerKeyTransportEncryptionAlgorithmURI(String jcaAlgorithmName, Integer keyLength, String wrappedKeyAlgorithm, String algorithmURI)
jcaAlgorithmName
- the JCA algorithm name to registerkeyLength
- the key length to register (may be null)wrappedKeyAlgorithm
- the JCA algorithm name of the key to be encrypted (may be null)algorithmURI
- the algorithm URI to registerpublic void deregisterKeyTransportEncryptionAlgorithmURI(String jcaAlgorithmName, Integer keyLength, String wrappedKeyAlgorithm)
jcaAlgorithmName
- the JCA algorithm name to deregisterkeyLength
- the key length to deregister (may be null)wrappedKeyAlgorithm
- the JCA algorithm name of the key to be encrypted (may be null)public String getAutoGeneratedDataEncryptionKeyAlgorithmURI()
getAutoGeneratedDataEncryptionKeyAlgorithmURI
インタフェース内 SecurityConfiguration
public void setAutoGeneratedDataEncryptionKeyAlgorithmURI(String algorithmURI)
algorithmURI
- the encryption algorithm URI to usepublic NamedKeyInfoGeneratorManager getKeyInfoGeneratorManager()
getKeyInfoGeneratorManager
インタフェース内 SecurityConfiguration
public void setKeyInfoGeneratorManager(NamedKeyInfoGeneratorManager keyInfoManager)
keyInfoManager
- the KeyInfoGenerator manager to usepublic KeyInfoCredentialResolver getDefaultKeyInfoCredentialResolver()
getDefaultKeyInfoCredentialResolver
インタフェース内 SecurityConfiguration
public void setDefaultKeyInfoCredentialResolver(KeyInfoCredentialResolver resolver)
resolver
- the default KeyInfoCredentialResolverpublic KeyInfoCredentialResolver getKeyInfoCredentialResolver(String name)
getKeyInfoCredentialResolver
インタフェース内 SecurityConfiguration
name
- the name of the resolver configuration to returnpublic void registerKeyInfoCredentialResolver(String name, KeyInfoCredentialResolver resolver)
name
- the name of the configurationresolver
- the KeyInfoCredentialResolver to registerpublic void deregisterKeyInfoCredentialResolver(String name)
name
- the name of the configurationpublic DSAParams getDSAParams(int keyLength)
getDSAParams
インタフェース内 SecurityConfiguration
keyLength
- length of the DSA key whose parameters are desiredpublic void setDSAParams(int keyLength, DSAParams params)
keyLength
- the key length of the DSA parametersparams
- the default DSA parameters instanceCopyright © 2012. All Rights Reserved.