|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.identity.federation.bindings.tomcat.KeyStoreKeyManager
public class KeyStoreKeyManager
KeyStore based Trust Key Manager
Field Summary | |
---|---|
static java.lang.String |
KEYSTORE_PASS
|
static java.lang.String |
KEYSTORE_URL
|
static java.lang.String |
SIGNING_KEY_ALIAS
|
static java.lang.String |
SIGNING_KEY_PASS
|
Constructor Summary | |
---|---|
KeyStoreKeyManager()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KEYSTORE_URL
public static final java.lang.String KEYSTORE_PASS
public static final java.lang.String SIGNING_KEY_PASS
public static final java.lang.String SIGNING_KEY_ALIAS
Constructor Detail |
---|
public KeyStoreKeyManager()
Method Detail |
---|
public java.security.PrivateKey getSigningKey() throws java.lang.Exception
TrustKeyManager
getSigningKey
in interface TrustKeyManager
java.lang.Exception
TrustKeyManager.getSigningKey()
public java.security.PublicKey getValidatingKey(java.lang.String domain) throws java.lang.Exception
TrustKeyManager
getValidatingKey
in interface TrustKeyManager
java.lang.Exception
TrustKeyManager.getValidatingKey(String)
public void setAuthProperties(java.util.List<AuthPropertyType> authList) throws java.lang.Exception
TrustKeyManager
setAuthProperties
in interface TrustKeyManager
java.lang.Exception
TrustKeyManager.setAuthProperties(List)
public void setValidatingAlias(java.util.List<KeyValueType> aliases)
TrustKeyManager
setValidatingAlias
in interface TrustKeyManager
TrustKeyManager.setValidatingAlias(List)
public javax.crypto.SecretKey getEncryptionKey(java.lang.String domain, java.lang.String encryptionAlgorithm, int keyLength) throws java.lang.Exception
TrustKeyManager
getEncryptionKey
in interface TrustKeyManager
encryptionAlgorithm
- Encryption AlgorithmkeyLength
- length of keys
java.lang.Exception
TrustKeyManager#getEncryptionKey(String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |