Package org.wildfly.security.auth.realm
Class KeyStoreBackedSecurityRealm
- java.lang.Object
-
- org.wildfly.security.auth.realm.KeyStoreBackedSecurityRealm
-
- All Implemented Interfaces:
SecurityRealm
public class KeyStoreBackedSecurityRealm extends Object implements SecurityRealm
AKeyStorebackedSecurityRealmimplementation.- Author:
- David M. Lloyd, Darran Lofthouse
-
-
Field Summary
-
Fields inherited from interface org.wildfly.security.auth.server.SecurityRealm
EMPTY_REALM
-
-
Constructor Summary
Constructors Constructor Description KeyStoreBackedSecurityRealm(KeyStore keyStore)Construct a new instance.KeyStoreBackedSecurityRealm(KeyStore keyStore, Supplier<Provider[]> providers)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SupportLevelgetCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)SupportLevelgetEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName)RealmIdentitygetRealmIdentity(Principal principal)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.auth.server.SecurityRealm
getCredentialAcquireSupport, getRealmIdentity, getRealmIdentity, handleRealmEvent
-
-
-
-
Constructor Detail
-
KeyStoreBackedSecurityRealm
public KeyStoreBackedSecurityRealm(KeyStore keyStore)
Construct a new instance.- Parameters:
keyStore- the keystore to use to back this realm
-
-
Method Detail
-
getRealmIdentity
public RealmIdentity getRealmIdentity(Principal principal) throws RealmUnavailableException
- Specified by:
getRealmIdentityin interfaceSecurityRealm- Throws:
RealmUnavailableException
-
getCredentialAcquireSupport
public SupportLevel getCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws RealmUnavailableException
- Specified by:
getCredentialAcquireSupportin interfaceSecurityRealm- Throws:
RealmUnavailableException
-
getEvidenceVerifySupport
public SupportLevel getEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName) throws RealmUnavailableException
- Specified by:
getEvidenceVerifySupportin interfaceSecurityRealm- Throws:
RealmUnavailableException
-
-