Class BasicSecurityContext

  • All Implemented Interfaces:
    javax.ws.rs.core.SecurityContext

    public class BasicSecurityContext
    extends java.lang.Object
    implements javax.ws.rs.core.SecurityContext
    • Field Summary

      • Fields inherited from interface javax.ws.rs.core.SecurityContext

        BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
    • Constructor Detail

      • BasicSecurityContext

        public BasicSecurityContext​(User user,
                                    boolean secure)
    • Method Detail

      • getUserPrincipal

        public java.security.Principal getUserPrincipal()
        Specified by:
        getUserPrincipal in interface javax.ws.rs.core.SecurityContext
      • getUser

        public User getUser()
      • isUserInRole

        public boolean isUserInRole​(java.lang.String role)
        Specified by:
        isUserInRole in interface javax.ws.rs.core.SecurityContext
      • isSecure

        public boolean isSecure()
        Specified by:
        isSecure in interface javax.ws.rs.core.SecurityContext
      • getAuthenticationScheme

        public java.lang.String getAuthenticationScheme()
        Specified by:
        getAuthenticationScheme in interface javax.ws.rs.core.SecurityContext