Package io.quarkus.oidc.runtime
Class OidcProvider
java.lang.Object
io.quarkus.oidc.runtime.OidcProvider
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final RefreshableVerificationKeyResolver(package private) final String[](package private) final OidcProviderClient(package private) final String(package private) final DynamicVerificationKeyResolver(package private) final OidcTenantConfig(package private) final org.jose4j.jwa.AlgorithmConstraints(package private) final TokenCustomizer(package private) final Key -
Constructor Summary
ConstructorsConstructorDescriptionOidcProvider(OidcProviderClient client, OidcTenantConfig oidcConfig, JsonWebKeySet jwks, TokenCustomizer tokenCustomizer, Key tokenDecryptionKey) OidcProvider(OidcProviderClient client, OidcTenantConfig oidcConfig, JsonWebKeySet jwks, Key tokenDecryptionKey) OidcProvider(String publicKeyEnc, OidcTenantConfig oidcConfig, Key tokenDecryptionKey) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()io.smallrye.mutiny.Uni<AuthorizationCodeTokens>getCodeFlowTokens(String code, String redirectUri, String codeVerifier) io.smallrye.mutiny.Uni<TokenVerificationResult>getKeyResolverAndVerifyJwtToken(io.quarkus.security.credential.TokenCredential tokenCred, boolean enforceAudienceVerification, boolean subjectRequired, String nonce) io.smallrye.mutiny.Uni<UserInfo>getUserInfo(String accessToken) io.smallrye.mutiny.Uni<TokenIntrospection>introspectToken(String token, boolean fallbackFromJwkMatch) io.smallrye.mutiny.Uni<TokenVerificationResult>refreshJwksAndVerifyJwtToken(String token, boolean enforceAudienceVerification, boolean subjectRequired, String nonce) io.smallrye.mutiny.Uni<AuthorizationCodeTokens>refreshTokens(String refreshToken) verifyJwtToken(String token, boolean enforceAudienceVerification, boolean subjectRequired, String nonce) verifyLogoutJwtToken(String token) verifySelfSignedJwtToken(String token)
-
Field Details
-
client
-
asymmetricKeyResolver
-
keyResolverProvider
-
oidcConfig
-
tokenCustomizer
-
issuer
-
audience
-
requiredClaims
-
tokenDecryptionKey
-
requiredAlgorithmConstraints
final org.jose4j.jwa.AlgorithmConstraints requiredAlgorithmConstraints
-
-
Constructor Details
-
OidcProvider
public OidcProvider(OidcProviderClient client, OidcTenantConfig oidcConfig, JsonWebKeySet jwks, Key tokenDecryptionKey) -
OidcProvider
public OidcProvider(OidcProviderClient client, OidcTenantConfig oidcConfig, JsonWebKeySet jwks, TokenCustomizer tokenCustomizer, Key tokenDecryptionKey) -
OidcProvider
-
-
Method Details
-
verifySelfSignedJwtToken
public TokenVerificationResult verifySelfSignedJwtToken(String token) throws org.jose4j.jwt.consumer.InvalidJwtException - Throws:
org.jose4j.jwt.consumer.InvalidJwtException
-
verifyJwtToken
public TokenVerificationResult verifyJwtToken(String token, boolean enforceAudienceVerification, boolean subjectRequired, String nonce) throws org.jose4j.jwt.consumer.InvalidJwtException - Throws:
org.jose4j.jwt.consumer.InvalidJwtException
-
verifyLogoutJwtToken
public TokenVerificationResult verifyLogoutJwtToken(String token) throws org.jose4j.jwt.consumer.InvalidJwtException - Throws:
org.jose4j.jwt.consumer.InvalidJwtException
-
refreshJwksAndVerifyJwtToken
public io.smallrye.mutiny.Uni<TokenVerificationResult> refreshJwksAndVerifyJwtToken(String token, boolean enforceAudienceVerification, boolean subjectRequired, String nonce) -
getKeyResolverAndVerifyJwtToken
public io.smallrye.mutiny.Uni<TokenVerificationResult> getKeyResolverAndVerifyJwtToken(io.quarkus.security.credential.TokenCredential tokenCred, boolean enforceAudienceVerification, boolean subjectRequired, String nonce) -
introspectToken
public io.smallrye.mutiny.Uni<TokenIntrospection> introspectToken(String token, boolean fallbackFromJwkMatch) -
getUserInfo
-
getCodeFlowTokens
public io.smallrye.mutiny.Uni<AuthorizationCodeTokens> getCodeFlowTokens(String code, String redirectUri, String codeVerifier) -
refreshTokens
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getMetadata
-