Class StoreAuthenticationPlugin

  • All Implemented Interfaces:
    AuthenticationPlugin, io.vertigo.core.node.component.Activeable, io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Plugin

    public class StoreAuthenticationPlugin
    extends Object
    implements AuthenticationPlugin, io.vertigo.core.node.component.Activeable
    A Store implementation of the Realm interface that
    Author:
    npiedeloup
    • Constructor Detail

      • StoreAuthenticationPlugin

        @Inject
        public StoreAuthenticationPlugin​(String userCredentialEntity,
                                         String userLoginField,
                                         String userPasswordField,
                                         String userTokenIdField,
                                         EntityStoreManager entityStoreManager)
        Constructor.
        Parameters:
        entityStoreManager - Store Manager
        userCredentialEntity - Entity name of userCredentialObject
        userLoginField - Login fieldName
        userPasswordField - Encoded Password fieldName
        userTokenIdField - TokenId fieldName
    • Method Detail

      • supports

        public boolean supports​(AuthenticationToken token)
        Convenience implementation that returns getAuthenticationTokenClass().isAssignableFrom( token.getClass() );. Can be overridden by subclasses for more complex token checking. Most configurations will only need to set a different class via setAuthenticationTokenClass(java.lang.Class), as opposed to overriding this method.
        Specified by:
        supports in interface AuthenticationPlugin
        Parameters:
        token - the token being submitted for authentication.
        Returns:
        true if this authentication realm can process the submitted token instance of the class, false otherwise.
      • start

        public void start()
        Specified by:
        start in interface io.vertigo.core.node.component.Activeable
      • stop

        public void stop()
        Specified by:
        stop in interface io.vertigo.core.node.component.Activeable