Interface SecurityHelper

    • Method Detail

      • associateSecurityContext

        Object associateSecurityContext​(Object context)
        Associate the given context and return the old context
        Parameters:
        context -
        Returns:
      • clearSecurityContext

        void clearSecurityContext()
        Clear any security context associated with the thread
      • getSecurityContext

        Object getSecurityContext​(String securityDomain)
        Get the current security context associated with the thread
        Returns:
      • getSubjectInContext

        Subject getSubjectInContext​(Object context)
        Get the subject associated with the security context.
        Parameters:
        context -
        Returns:
      • authenticate

        Object authenticate​(String securityDomain,
                            String baseUserName,
                            Credentials credentials,
                            String applicationName)
                     throws LoginException
        Authenticate the user and return the security context
        Parameters:
        securityDomain -
        baseUserName - without the security domain suffix
        credentials -
        applicationName -
        Returns:
        a non-null context object
        Throws:
        LoginException
      • negotiateGssLogin

        GSSResult negotiateGssLogin​(String securityDomain,
                                    byte[] serviceTicket)
                             throws LoginException
        Negotiate the GSS login
        Parameters:
        securityDomain -
        serviceTicket -
        Returns:
        Throws:
        LoginException