Package ee.jakarta.tck.ws.rs.common.impl
Class SecurityContextImpl
java.lang.Object
ee.jakarta.tck.ws.rs.common.impl.SecurityContextImpl
- All Implemented Interfaces:
jakarta.ws.rs.core.SecurityContext
This is simple implementation of a SecurityContext interface There are two
constructors, the default representing dummy SecurityContext with no
principal, scheme and role, and a constructor with principal scheme and
information about whether the connection is secure and whether user is in
role
-
Field Summary
Fields inherited from interface jakarta.ws.rs.core.SecurityContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
Constructor Summary
ConstructorsConstructorDescriptionDummy security contextSecurityContextImpl(String principal, boolean isUserInRole, boolean isSecure, String scheme) Representation of principal, role, scheme, and secure connection -
Method Summary
-
Constructor Details
-
SecurityContextImpl
Representation of principal, role, scheme, and secure connection -
SecurityContextImpl
public SecurityContextImpl()Dummy security context
-
-
Method Details
-
getUserPrincipal
- Specified by:
getUserPrincipalin interfacejakarta.ws.rs.core.SecurityContext
-
isUserInRole
- Specified by:
isUserInRolein interfacejakarta.ws.rs.core.SecurityContext
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfacejakarta.ws.rs.core.SecurityContext
-
getAuthenticationScheme
- Specified by:
getAuthenticationSchemein interfacejakarta.ws.rs.core.SecurityContext
-