Class TokenSecurityRealm
- java.lang.Object
-
- org.wildfly.security.auth.realm.token.TokenSecurityRealm
-
- All Implemented Interfaces:
SecurityRealm
public final class TokenSecurityRealm extends Object implements SecurityRealm
A
SecurityRealmcapable of building identities based on different security token formats based on aTokenValidator.- Author:
- Pedro Igor
- See Also:
TokenValidator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTokenSecurityRealm.Builder
-
Field Summary
-
Fields inherited from interface org.wildfly.security.auth.server.SecurityRealm
EMPTY_REALM
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenSecurityRealm.Builderbuilder()Returns aTokenSecurityRealm.Builderinstance that can be used to configure and create aTokenSecurityRealm.SupportLevelgetCredentialAcquireSupport(Class<? extends Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec)SupportLevelgetEvidenceVerifySupport(Class<? extends Evidence> evidenceType, String algorithmName)RealmIdentitygetRealmIdentity(Evidence evidence)-
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
-
-
-
-
Method Detail
-
builder
public static TokenSecurityRealm.Builder builder()
Returns aTokenSecurityRealm.Builderinstance that can be used to configure and create aTokenSecurityRealm.- Returns:
- the
TokenSecurityRealm.Builder
-
getRealmIdentity
public RealmIdentity getRealmIdentity(Evidence evidence)
- Specified by:
getRealmIdentityin interfaceSecurityRealm
-
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
-
-