Class OidcSecurityContext
java.lang.Object
org.apache.cxf.common.security.SimpleSecurityContext
org.apache.cxf.rs.security.oidc.rp.OidcSecurityContext
- All Implemented Interfaces:
jakarta.ws.rs.core.SecurityContext,SecurityContext
public class OidcSecurityContext
extends SimpleSecurityContext
implements jakarta.ws.rs.core.SecurityContext
-
Field Summary
Fields inherited from interface jakarta.ws.rs.core.SecurityContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH -
Constructor Summary
ConstructorsConstructorDescriptionOidcSecurityContext(IdToken token) OidcSecurityContext(OidcClientTokenContext oidcContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected static Stringprotected static StringgetPrincipalName(OidcClientTokenContext oidcContext) booleanisSecure()booleanisUserInRole(String role) voidsetRoleClaim(String roleClaim) Set the claim name that corresponds to the "role" of the Subject of the IdToken.Methods inherited from class org.apache.cxf.common.security.SimpleSecurityContext
getUserPrincipalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.core.SecurityContext
getUserPrincipal
-
Constructor Details
-
OidcSecurityContext
-
OidcSecurityContext
-
-
Method Details
-
getOidcContext
-
getPrincipalName
-
getPrincipalName
-
isSecure
public boolean isSecure()- Specified by:
isSecurein interfacejakarta.ws.rs.core.SecurityContext
-
getAuthenticationScheme
- Specified by:
getAuthenticationSchemein interfacejakarta.ws.rs.core.SecurityContext
-
isUserInRole
- Specified by:
isUserInRolein interfacejakarta.ws.rs.core.SecurityContext- Specified by:
isUserInRolein interfaceSecurityContext- Overrides:
isUserInRolein classSimpleSecurityContext
-
setRoleClaim
Set the claim name that corresponds to the "role" of the Subject of the IdToken.
-