Class EncryptedPropertiesSecurityRealm

java.lang.Object
org.infinispan.server.security.realm.EncryptedPropertiesSecurityRealm
All Implemented Interfaces:
org.wildfly.security.auth.realm.CacheableSecurityRealm, org.wildfly.security.auth.server.ModifiableSecurityRealm, org.wildfly.security.auth.server.SecurityRealm

public class EncryptedPropertiesSecurityRealm extends Object implements org.wildfly.security.auth.realm.CacheableSecurityRealm, org.wildfly.security.auth.server.ModifiableSecurityRealm
A SecurityRealm implementation that uses property files with encrypted passwords
Since:
11.0
Author:
Darran Lofthouse <darran.lofthouse@jboss.com>, Tristan Tarrant <tristan@infinispan.org>
  • Method Details

    • getRealmIdentity

      public org.wildfly.security.auth.server.RealmIdentity getRealmIdentity(Principal principal)
      Specified by:
      getRealmIdentity in interface org.wildfly.security.auth.server.SecurityRealm
    • getCredentialAcquireSupport

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

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

      public void load(InputStream usersStream, InputStream groupsStream) throws IOException
      Loads this properties security realm from the given user and groups input streams.
      Parameters:
      usersStream - the input stream from which the realm users are loaded
      groupsStream - the input stream from which the roles of realm users are loaded
      Throws:
      IOException - if there is problem while reading the input streams or invalid content is loaded from streams
    • getLoadTime

      public long getLoadTime()
      Get the time when the realm was last loaded.
      Returns:
      the time when the realm was last loaded (number of milliseconds since the standard base time)
    • builder

      Returns:
      a new EncryptedPropertiesSecurityRealm.Builder capable of building a EncryptedPropertiesSecurityRealm.
    • registerIdentityChangeListener

      public void registerIdentityChangeListener(Consumer<Principal> listener)
      Specified by:
      registerIdentityChangeListener in interface org.wildfly.security.auth.realm.CacheableSecurityRealm
    • getRealmIdentityIterator

      public org.wildfly.security.auth.server.ModifiableRealmIdentityIterator getRealmIdentityIterator()
      Specified by:
      getRealmIdentityIterator in interface org.wildfly.security.auth.server.ModifiableSecurityRealm