Class InMemmoryIdentityStore

  • All Implemented Interfaces:
    javax.security.enterprise.identitystore.IdentityStore

    @ApplicationScoped
    public class InMemmoryIdentityStore
    extends Object
    implements javax.security.enterprise.identitystore.IdentityStore
    A basic in-memory identity store.
    Author:
    Arjan Tijms
    • Constructor Detail

      • InMemmoryIdentityStore

        public InMemmoryIdentityStore()
    • Method Detail

      • addCredential

        public static void addCredential​(String callerName,
                                         String password,
                                         List<String> groups)
      • validate

        public javax.security.enterprise.identitystore.CredentialValidationResult validate​(javax.security.enterprise.credential.UsernamePasswordCredential usernamePasswordCredential)
      • getCallerGroups

        public Set<String> getCallerGroups​(javax.security.enterprise.identitystore.CredentialValidationResult validationResult)
        Specified by:
        getCallerGroups in interface javax.security.enterprise.identitystore.IdentityStore