Class PrincipalSecurityContext

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

    public class PrincipalSecurityContext
    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
    • Method Detail

      • forName

        public static javax.ws.rs.core.SecurityContext forName​(java.lang.String principalName)
      • getUserPrincipal

        public java.security.Principal getUserPrincipal()
        Specified by:
        getUserPrincipal in interface javax.ws.rs.core.SecurityContext
      • 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