public interface ModifiableSecurityRealm extends SecurityRealm
EMPTY_REALM
Modifier and Type | Method and Description |
---|---|
default ModifiableRealmIdentity |
getRealmIdentityForUpdate(Evidence evidence)
Get an update handle for to the identity for the given principal in the context of this security realm.
|
default ModifiableRealmIdentity |
getRealmIdentityForUpdate(Principal principal)
Get an update handle for to the identity for the given principal in the context of this security realm.
|
ModifiableRealmIdentityIterator |
getRealmIdentityIterator()
Get an iterator over all of this realm's identities.
|
getCredentialAcquireSupport, getCredentialAcquireSupport, getEvidenceVerifySupport, getRealmIdentity, getRealmIdentity, handleRealmEvent, safeHandleRealmEvent
default ModifiableRealmIdentity getRealmIdentityForUpdate(Principal principal) throws RealmUnavailableException
RealmIdentity.dispose()
. During
the lifespan of a ModifiableRealmIdentity
, 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_EXISTENT
may be returned.
principal
- the principal to use to locate the ModifiableRealmIdentity
handle (must not be null
)ModifiableRealmIdentity
for the provided information (not null
)RealmUnavailableException
default ModifiableRealmIdentity getRealmIdentityForUpdate(Evidence evidence) throws RealmUnavailableException
RealmIdentity.dispose()
. During
the lifespan of a ModifiableRealmIdentity
, 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_EXISTENT
may be returned.
evidence
- the evidence to use to locate the ModifiableRealmIdentity
handle (must not be null
)ModifiableRealmIdentity
for the provided information (not null
)RealmUnavailableException
ModifiableRealmIdentityIterator getRealmIdentityIterator() throws RealmUnavailableException
RealmUnavailableException
- if the realm fails for some reasonCopyright © 2020 JBoss by Red Hat. All rights reserved.