public interface TrustKeyManager
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalOption(String key,
Object value)
Add general options
|
Object |
getAdditionalOption(String key)
Get additional option
|
Certificate |
getCertificate(String alias)
Get the certificate given an alias
|
SecretKey |
getEncryptionKey(String domain,
String encryptionAlgorithm,
int keyLength)
Given a domain, obtain a secret key
|
PublicKey |
getPublicKey(String alias)
Get a Public Key given an alias
|
PrivateKey |
getSigningKey()
Get the Signing Key
|
KeyPair |
getSigningKeyPair()
Constructs a
KeyPair instance containing the signing key (PrivateKey) and associated PublicKey. |
PublicKey |
getValidatingKey(String domain)
Get the Validating Public Key of the domain
|
void |
setAuthProperties(List<AuthPropertyType> authList)
Provide a set of properties used for authentication into the storage of keys - keystore, ldap, db, HSM etc
|
void |
setValidatingAlias(List<KeyValueType> aliases)
Set a list of (domain,alias) tuple to trust domains The alias is a string that represents the validating key stored for a
domain
|
void setAuthProperties(List<AuthPropertyType> authList) throws TrustKeyConfigurationException, TrustKeyProcessingException
authList - {@link - IOException}TrustKeyConfigurationExceptionTrustKeyProcessingExceptionvoid setValidatingAlias(List<KeyValueType> aliases) throws TrustKeyConfigurationException, TrustKeyProcessingException
aliases - {@link - IOException}TrustKeyConfigurationExceptionTrustKeyProcessingExceptionPrivateKey getSigningKey() throws TrustKeyConfigurationException, TrustKeyProcessingException
{@link - CertificateException}TrustKeyConfigurationExceptionTrustKeyProcessingExceptionKeyPair getSigningKeyPair() throws TrustKeyConfigurationException, TrustKeyProcessingException
Constructs a KeyPair instance containing the signing key (PrivateKey) and associated PublicKey.
KeyPair object.TrustKeyConfigurationExceptionTrustKeyProcessingExceptionCertificate getCertificate(String alias) throws TrustKeyConfigurationException, TrustKeyProcessingException
alias - {@link - CertificateException}TrustKeyConfigurationExceptionTrustKeyProcessingExceptionPublicKey getPublicKey(String alias) throws TrustKeyConfigurationException, TrustKeyProcessingException
alias - {@link - CertificateException}TrustKeyConfigurationExceptionTrustKeyProcessingExceptionSecretKey getEncryptionKey(String domain, String encryptionAlgorithm, int keyLength) throws TrustKeyConfigurationException, TrustKeyProcessingException
domain - encryptionAlgorithm - Encryption AlgorithmkeyLength - length of keysTrustKeyConfigurationExceptionTrustKeyProcessingExceptionEncryptionKeyUtil}PublicKey getValidatingKey(String domain) throws TrustKeyConfigurationException, TrustKeyProcessingException
domain - TrustKeyConfigurationExceptionTrustKeyProcessingExceptionvoid addAdditionalOption(String key, Object value)
key - value - Copyright © 2012 JBoss by Red Hat. All Rights Reserved.