Class HttpAccessControlImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      HttpAccessControlImpl​(java.lang.String authenticationScheme, java.lang.String principalName, java.util.Set<java.lang.String> roles)
      Initiate with simple Principal.
      HttpAccessControlImpl​(java.lang.String authenticationScheme, java.security.Principal principal, java.util.Set<java.lang.String> roles)
      Initiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAuthenticationScheme()
      Obtains the authentication scheme used.
      java.security.Principal getPrincipal()
      Obtains the Principal.
      boolean inRole​(java.lang.String role)
      Indicates if within role.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HttpAccessControlImpl

        public HttpAccessControlImpl​(java.lang.String authenticationScheme,
                                     java.security.Principal principal,
                                     java.util.Set<java.lang.String> roles)
        Initiate.
        Parameters:
        authenticationScheme - Authentication scheme.
        principal - Principal.
        roles - Roles for the user.
      • HttpAccessControlImpl

        public HttpAccessControlImpl​(java.lang.String authenticationScheme,
                                     java.lang.String principalName,
                                     java.util.Set<java.lang.String> roles)
        Initiate with simple Principal.
        Parameters:
        authenticationScheme - Authentication scheme.
        principalName - Principal name.
        roles - Roles for the user.
    • Method Detail

      • inRole

        public boolean inRole​(java.lang.String role)
        Description copied from interface: HttpAccessControl
        Indicates if within role.
        Specified by:
        inRole in interface HttpAccessControl
        Parameters:
        role - Role to check if have access.
        Returns:
        true if supports the role.