Package net.ltgt.oidc.servlet
Class Configuration
java.lang.Object
net.ltgt.oidc.servlet.Configuration
Contains the OpenID Connect-related configuration.
An instance of this class needs to be registered as a ServletContext attribute under the name CONTEXT_ATTRIBUTE_NAME.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfiguration(ReadOnlyOIDCProviderMetadata providerMetadata, ClientAuthentication clientAuthentication) Constructs a configuration instance that creates instances ofSimpleUserPrincipal.Configuration(ReadOnlyOIDCProviderMetadata providerMetadata, ClientAuthentication clientAuthentication, Function<SessionInfo, UserPrincipal> userPrincipalFactory) -
Method Summary
-
Field Details
-
CONTEXT_ATTRIBUTE_NAME
-
-
Constructor Details
-
Configuration
public Configuration(ReadOnlyOIDCProviderMetadata providerMetadata, ClientAuthentication clientAuthentication, Function<SessionInfo, UserPrincipal> userPrincipalFactory) -
Configuration
public Configuration(ReadOnlyOIDCProviderMetadata providerMetadata, ClientAuthentication clientAuthentication) Constructs a configuration instance that creates instances ofSimpleUserPrincipal.
-
-
Method Details
-
getProviderMetadata
-
getClientAuthentication
-
createUserPrincipal
-