Package org.wildfly.security.http.oidc
Class TokenValidator.Builder
- java.lang.Object
-
- org.wildfly.security.http.oidc.TokenValidator.Builder
-
- Enclosing class:
- TokenValidator
public static class TokenValidator.Builder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private OidcClientConfiguration
clientConfiguration
private String
clientId
private SecretKey
clientSecretKey
private String
expectedIssuer
private String
expectedJwsAlgorithm
private org.jose4j.jwt.consumer.JwtConsumerBuilder
jwtConsumerBuilder
private PublicKeyLocator
publicKeyLocator
-
Constructor Summary
Constructors Constructor Description Builder(OidcClientConfiguration clientConfiguration)
Construct a new uninitialized instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenValidator
build()
Create an ID token or bearer token validator.
-
-
-
Field Detail
-
clientConfiguration
private OidcClientConfiguration clientConfiguration
-
expectedIssuer
private String expectedIssuer
-
clientId
private String clientId
-
expectedJwsAlgorithm
private String expectedJwsAlgorithm
-
publicKeyLocator
private PublicKeyLocator publicKeyLocator
-
clientSecretKey
private SecretKey clientSecretKey
-
jwtConsumerBuilder
private org.jose4j.jwt.consumer.JwtConsumerBuilder jwtConsumerBuilder
-
-
Constructor Detail
-
Builder
Builder(OidcClientConfiguration clientConfiguration)
Construct a new uninitialized instance.- Parameters:
clientConfiguration
- the OIDC client configuration
-
-
Method Detail
-
build
public TokenValidator build() throws IllegalArgumentException
Create an ID token or bearer token validator.- Returns:
- the newly created token validator
- Throws:
IllegalArgumentException
- if a required builder parameter is missing or invalid
-
-