Class FailoverSecurityRealm.FailoverRealmIdentity

java.lang.Object
org.wildfly.security.auth.realm.FailoverSecurityRealm.FailoverRealmIdentity
All Implemented Interfaces:
org.wildfly.security.auth.server.RealmIdentity
Enclosing class:
FailoverSecurityRealm

protected abstract class FailoverSecurityRealm.FailoverRealmIdentity extends Object implements org.wildfly.security.auth.server.RealmIdentity
Author:
Martin Mazanek
  • Field Details

    • delegate

      protected org.wildfly.security.auth.server.RealmIdentity delegate
    • failed

      protected boolean failed
  • Constructor Details

    • FailoverRealmIdentity

      protected FailoverRealmIdentity(org.wildfly.security.auth.server.RealmIdentity identity)
  • Method Details

    • getFailoverIdentity

      protected abstract org.wildfly.security.auth.server.RealmIdentity getFailoverIdentity() throws org.wildfly.security.auth.server.RealmUnavailableException
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • getCredentialAcquireSupport

      public org.wildfly.security.auth.SupportLevel getCredentialAcquireSupport(Class<? extends org.wildfly.security.credential.Credential> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      getCredentialAcquireSupport in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • getCredential

      public <C extends org.wildfly.security.credential.Credential> C getCredential(Class<C> credentialType) throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      getCredential in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • getEvidenceVerifySupport

      public org.wildfly.security.auth.SupportLevel getEvidenceVerifySupport(Class<? extends org.wildfly.security.evidence.Evidence> evidenceType, String algorithmName) throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      getEvidenceVerifySupport in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • verifyEvidence

      public boolean verifyEvidence(org.wildfly.security.evidence.Evidence evidence) throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      verifyEvidence in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • exists

      public boolean exists() throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      exists in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • updateCredential

      public void updateCredential(org.wildfly.security.credential.Credential credential) throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      updateCredential in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • getRealmIdentityPrincipal

      public Principal getRealmIdentityPrincipal()
      Specified by:
      getRealmIdentityPrincipal in interface org.wildfly.security.auth.server.RealmIdentity
    • getCredential

      public <C extends org.wildfly.security.credential.Credential> C getCredential(Class<C> credentialType, String algorithmName) throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      getCredential in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • getCredential

      public <C extends org.wildfly.security.credential.Credential> C getCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec) throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      getCredential in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • applyToCredential

      public <C extends org.wildfly.security.credential.Credential, R> R applyToCredential(Class<C> credentialType, Function<C,R> function) throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      applyToCredential in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • applyToCredential

      public <C extends org.wildfly.security.credential.Credential, R> R applyToCredential(Class<C> credentialType, String algorithmName, Function<C,R> function) throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      applyToCredential in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • applyToCredential

      public <C extends org.wildfly.security.credential.Credential, R> R applyToCredential(Class<C> credentialType, String algorithmName, AlgorithmParameterSpec parameterSpec, Function<C,R> function) throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      applyToCredential in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • dispose

      public void dispose()
      Specified by:
      dispose in interface org.wildfly.security.auth.server.RealmIdentity
    • getAuthorizationIdentity

      public org.wildfly.security.authz.AuthorizationIdentity getAuthorizationIdentity() throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      getAuthorizationIdentity in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • getAttributes

      public org.wildfly.security.authz.Attributes getAttributes() throws org.wildfly.security.auth.server.RealmUnavailableException
      Specified by:
      getAttributes in interface org.wildfly.security.auth.server.RealmIdentity
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • failover

      protected org.wildfly.security.auth.server.RealmIdentity failover(org.wildfly.security.auth.server.RealmUnavailableException rue) throws org.wildfly.security.auth.server.RealmUnavailableException
      Throws:
      org.wildfly.security.auth.server.RealmUnavailableException
    • disableFailover

      protected void disableFailover()