org.jboss.identity.federation.bindings.interfaces
Interface TrustKeyManager

All Known Implementing Classes:
KeyStoreKeyManager

public interface TrustKeyManager

Key Manager interface used in trust decisions

Since:
Jan 22, 2009
Author:
Anil.Saldhana@redhat.com

Method Summary
 javax.crypto.SecretKey getEncryptionKey(java.lang.String domain, java.lang.String encryptionAlgorithm, int keyLength)
          Given a domain, obtain a secret key
 java.security.PrivateKey getSigningKey()
          Get the Signing Key
 java.security.PublicKey getValidatingKey(java.lang.String domain)
          Get the Validating Public Key of the domain
 void setAuthProperties(java.util.List<AuthPropertyType> authList)
          Provide a set of properties used for authentication into the storage of keys - keystore, ldap, db, HSM etc
 void setValidatingAlias(java.util.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
 

Method Detail

setAuthProperties

void setAuthProperties(java.util.List<AuthPropertyType> authList)
                       throws java.lang.Exception
Provide a set of properties used for authentication into the storage of keys - keystore, ldap, db, HSM etc

Parameters:
authList -
Throws:
java.lang.Exception

setValidatingAlias

void setValidatingAlias(java.util.List<KeyValueType> aliases)
                        throws java.lang.Exception
Set a list of (domain,alias) tuple to trust domains The alias is a string that represents the validating key stored for a domain

Parameters:
aliases -
Throws:
java.lang.Exception

getSigningKey

java.security.PrivateKey getSigningKey()
                                       throws java.lang.Exception
Get the Signing Key

Returns:
Throws:
java.lang.Exception

getEncryptionKey

javax.crypto.SecretKey getEncryptionKey(java.lang.String domain,
                                        java.lang.String encryptionAlgorithm,
                                        int keyLength)
                                        throws java.lang.Exception
Given a domain, obtain a secret key

Parameters:
domain -
encryptionAlgorithm - Encryption Algorithm
keyLength - length of keys
Returns:
Throws:
java.lang.Exception
See Also:
EncryptionKeyUtil}

getValidatingKey

java.security.PublicKey getValidatingKey(java.lang.String domain)
                                         throws java.lang.Exception
Get the Validating Public Key of the domain

Parameters:
domain -
Returns:
Throws:
java.lang.Exception


Copyright © 2009 JBoss Inc.. All Rights Reserved.