Package org.wildfly.security.auth.server
Interface ModifiableSecurityRealm
- All Superinterfaces:
SecurityRealm
A realm which can be modified.
- Author:
- David M. Lloyd
-
Field Summary
Fields inherited from interface org.wildfly.security.auth.server.SecurityRealm
EMPTY_REALM -
Method Summary
Modifier and TypeMethodDescriptiondefault ModifiableRealmIdentitygetRealmIdentityForUpdate(Principal principal) Get an update handle for to the identity for the given principal in the context of this security realm.default ModifiableRealmIdentitygetRealmIdentityForUpdate(Evidence evidence) Get an update handle for to the identity for the given principal in the context of this security realm.Get an iterator over all of this realm's identities.Methods inherited from interface org.wildfly.security.auth.server.SecurityRealm
getCredentialAcquireSupport, getCredentialAcquireSupport, getEvidenceVerifySupport, getRealmIdentity, getRealmIdentity, getRealmIdentity, handleRealmEvent
-
Method Details
-
getRealmIdentityForUpdate
default ModifiableRealmIdentity getRealmIdentityForUpdate(Principal principal) throws RealmUnavailableException Get an update handle for to the identity for the given principal in the context of this security realm. Any validation / name mapping is an implementation detail for the realm. The identity may or may not exist. The returned handle must be cleaned up by a call toRealmIdentity.dispose(). During the lifespan of aModifiableRealmIdentity, no other updates or authentications may take place for the corresponding realm identity, thus care should be taken to minimize the duration of the identity's lifespan.If there is not enough information to locate an identity compatible with this realm,
ModifiableRealmIdentity.NON_EXISTENTmay be returned.- Parameters:
principal- the principal to use to locate theModifiableRealmIdentityhandle (must not benull)- Returns:
- the
ModifiableRealmIdentityfor the provided information (notnull) - Throws:
RealmUnavailableException
-
getRealmIdentityForUpdate
default ModifiableRealmIdentity getRealmIdentityForUpdate(Evidence evidence) throws RealmUnavailableException Get an update handle for to the identity for the given principal in the context of this security realm. Any validation / name mapping is an implementation detail for the realm. The identity may or may not exist. The returned handle must be cleaned up by a call toRealmIdentity.dispose(). During the lifespan of aModifiableRealmIdentity, no other updates or authentications may take place for the corresponding realm identity, thus care should be taken to minimize the duration of the identity's lifespan.If there is not enough information to locate an identity compatible with this realm,
ModifiableRealmIdentity.NON_EXISTENTmay be returned.- Parameters:
evidence- the evidence to use to locate theModifiableRealmIdentityhandle (must not benull)- Returns:
- the
ModifiableRealmIdentityfor the provided information (notnull) - Throws:
RealmUnavailableException
-
getRealmIdentityIterator
Get an iterator over all of this realm's identities.- Returns:
- the identity iterator
- Throws:
RealmUnavailableException- if the realm fails for some reason
-