public interface ModifiableRealmIdentity extends RealmIdentity
| Modifier and Type | Field and Description |
|---|---|
static ModifiableRealmIdentity |
NON_EXISTENT
A modifiable identity for a non-existent user who cannot be created.
|
ANONYMOUS| Modifier and Type | Method and Description |
|---|---|
void |
create()
Create this realm identity.
|
void |
delete()
Delete this realm identity.
|
void |
setAttributes(Attributes attributes)
Modify the attributes collection of this identity.
|
void |
setCredentials(Collection<? extends Credential> credentials)
Set the credentials of this identity.
|
default void |
updateCredential(Credential credential)
Update a credential of this realm identity.
|
applyToCredential, applyToCredential, applyToCredential, dispose, exists, getAttributes, getAuthorizationIdentity, getCredential, getCredential, getCredential, getCredentialAcquireSupport, getCredentialAcquireSupport, getEvidenceVerifySupport, getRealmIdentityPrincipal, verifyEvidencestatic final ModifiableRealmIdentity NON_EXISTENT
void delete()
throws RealmUnavailableException
RealmIdentity.exists() will return false. If the identity
does not exist, an exception is thrown.RealmUnavailableException - if deletion fails for some reasonvoid create()
throws RealmUnavailableException
RealmIdentity.exists() will return true and the credentials
and role sets will be empty. If the identity already exists, an exception is thrown.RealmUnavailableException - if creation fails for some reasonvoid setCredentials(Collection<? extends Credential> credentials) throws RealmUnavailableException
credentials - the new credentials to setRealmUnavailableException - if updating the credentials fails for some reasondefault void updateCredential(Credential credential) throws RealmUnavailableException
RealmIdentityupdateCredential in interface RealmIdentitycredential - the new credential (must not be null)RealmUnavailableException - if the realm is not able to handle requests for any reasonvoid setAttributes(Attributes attributes) throws RealmUnavailableException
attributes - the new attributes collectionRealmUnavailableException - if updating the attributes collection fails for some reasonCopyright © 2019 JBoss by Red Hat. All rights reserved.