Class EJBAuthenticationHelper


  • public class EJBAuthenticationHelper
    extends AbstractJavaEEHelper
    Helper Class for EJB Authentication
    Since:
    Apr 18, 2008
    Version:
    $Revision$
    Author:
    Anil.Saldhana@redhat.com
    • Constructor Detail

      • EJBAuthenticationHelper

        public EJBAuthenticationHelper​(SecurityContext sc)
    • Method Detail

      • isValid

        public boolean isValid​(Subject subject,
                               String methodName)
        Authenticate the caller
        Parameters:
        subject -
        methodName -
        Returns:
        Throws:
        IllegalArgumentException - subject or methodName is null
      • pushSubjectContext

        public void pushSubjectContext​(Subject subject)
        Push the authenticated subject onto the security context IMPORTANT - this needs to be done after the isValid call