Class AssosiateCallerIdentityLoginModule

  • All Implemented Interfaces:
    LoginModule

    public class AssosiateCallerIdentityLoginModule
    extends org.jboss.security.auth.spi.AbstractServerLoginModule
    This login modules simply takes the subject in the current context and adds its principle to shared state. This is same as CallerIdentityLoginModule, just it does not extend the AbstractPasswordCredentialLoginModule
    • Constructor Detail

      • AssosiateCallerIdentityLoginModule

        public AssosiateCallerIdentityLoginModule()
    • Method Detail

      • initialize

        public void initialize​(Subject subject,
                               CallbackHandler handler,
                               Map sharedState,
                               Map options)
        Specified by:
        initialize in interface LoginModule
        Overrides:
        initialize in class org.jboss.security.auth.spi.AbstractServerLoginModule
      • login

        public boolean login()
                      throws LoginException
        Performs the login association between the caller and the resource for a 1 to 1 mapping. This acts as a login propagation strategy and is useful for single-sign on requirements
        Specified by:
        login in interface LoginModule
        Overrides:
        login in class org.jboss.security.auth.spi.AbstractServerLoginModule
        Returns:
        True if authentication succeeds
        Throws:
        LoginException
      • getIdentity

        protected Principal getIdentity()
        Specified by:
        getIdentity in class org.jboss.security.auth.spi.AbstractServerLoginModule
      • getRoleSets

        protected Group[] getRoleSets()
                               throws LoginException
        Specified by:
        getRoleSets in class org.jboss.security.auth.spi.AbstractServerLoginModule
        Throws:
        LoginException