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<org.picketlink.config.federation.AuthPropertyType> authList)
Provide a set of properties used for authentication into the storage of keys - keystore, ldap, db, HSM etc
|
void |
setValidatingAlias(List<org.picketlink.config.federation.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<org.picketlink.config.federation.AuthPropertyType> authList) throws org.picketlink.common.exceptions.TrustKeyConfigurationException, org.picketlink.common.exceptions.TrustKeyProcessingException
authList - {@link - IOException}org.picketlink.common.exceptions.TrustKeyConfigurationExceptionorg.picketlink.common.exceptions.TrustKeyProcessingExceptionvoid setValidatingAlias(List<org.picketlink.config.federation.KeyValueType> aliases) throws org.picketlink.common.exceptions.TrustKeyConfigurationException, org.picketlink.common.exceptions.TrustKeyProcessingException
aliases - {@link - IOException}org.picketlink.common.exceptions.TrustKeyConfigurationExceptionorg.picketlink.common.exceptions.TrustKeyProcessingExceptionPrivateKey getSigningKey() throws org.picketlink.common.exceptions.TrustKeyConfigurationException, org.picketlink.common.exceptions.TrustKeyProcessingException
{@link - CertificateException}org.picketlink.common.exceptions.TrustKeyConfigurationExceptionorg.picketlink.common.exceptions.TrustKeyProcessingExceptionKeyPair getSigningKeyPair() throws org.picketlink.common.exceptions.TrustKeyConfigurationException, org.picketlink.common.exceptions.TrustKeyProcessingException
Constructs a KeyPair instance containing the signing key (PrivateKey) and associated PublicKey.
KeyPair object.org.picketlink.common.exceptions.TrustKeyConfigurationExceptionorg.picketlink.common.exceptions.TrustKeyProcessingExceptionCertificate getCertificate(String alias) throws org.picketlink.common.exceptions.TrustKeyConfigurationException, org.picketlink.common.exceptions.TrustKeyProcessingException
alias - {@link - CertificateException}org.picketlink.common.exceptions.TrustKeyConfigurationExceptionorg.picketlink.common.exceptions.TrustKeyProcessingExceptionPublicKey getPublicKey(String alias) throws org.picketlink.common.exceptions.TrustKeyConfigurationException, org.picketlink.common.exceptions.TrustKeyProcessingException
alias - {@link - CertificateException}org.picketlink.common.exceptions.TrustKeyConfigurationExceptionorg.picketlink.common.exceptions.TrustKeyProcessingExceptionSecretKey getEncryptionKey(String domain, String encryptionAlgorithm, int keyLength) throws org.picketlink.common.exceptions.TrustKeyConfigurationException, org.picketlink.common.exceptions.TrustKeyProcessingException
domain - encryptionAlgorithm - Encryption AlgorithmkeyLength - length of keysorg.picketlink.common.exceptions.TrustKeyConfigurationExceptionorg.picketlink.common.exceptions.TrustKeyProcessingExceptionEncryptionKeyUtil}PublicKey getValidatingKey(String domain) throws org.picketlink.common.exceptions.TrustKeyConfigurationException, org.picketlink.common.exceptions.TrustKeyProcessingException
domain - org.picketlink.common.exceptions.TrustKeyConfigurationExceptionorg.picketlink.common.exceptions.TrustKeyProcessingExceptionvoid addAdditionalOption(String key, Object value)
key - value - Copyright © 2013 JBoss Inc.. All Rights Reserved.