Interface SecurityContext


  • public interface SecurityContext
    Version:
    $Revision: 5448 $
    Author:
    Julien Viet
    • Method Detail

      • isSecure

        boolean isSecure()
        Returns:
        true if is secured
      • isAuthenticated

        boolean isAuthenticated()
        Returns:
        true if it is authenticated
      • getAuthType

        String getAuthType()
        Returns:
        the auth type
      • getRemoteUser

        String getRemoteUser()
        Returns:
        the remote user
      • getUserPrincipal

        Principal getUserPrincipal()
        Returns:
        the user principal
      • isUserInRole

        boolean isUserInRole​(String roleName)
        Parameters:
        roleName - the role name
        Returns:
        true if the user is in role