Class RhIdSecurityContext

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

    public class RhIdSecurityContext
    extends Object
    implements javax.ws.rs.core.SecurityContext
    An implementation of SecurityContext, that gets the data from the parsed x-rh-identity header.
    Author:
    hrupp
    • Method Detail

      • getUserPrincipal

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

        public boolean isUserInRole​(String s)
        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 String getAuthenticationScheme()
        Specified by:
        getAuthenticationScheme in interface javax.ws.rs.core.SecurityContext