Class OpenIdConfiguration
- java.lang.Object
-
- org.eclipse.jetty.security.openid.OpenIdConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
public class OpenIdConfiguration extends java.lang.Object implements java.io.Serializable
Holds the configuration for an OpenID Connect service. This uses the OpenID Provider URL with the pathCONFIG_PATH
to discover the required information about the OIDC service.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OpenIdConfiguration(java.lang.String provider, java.lang.String clientId, java.lang.String clientSecret)
Create an OpenID configuration for a specific OIDC provider.OpenIdConfiguration(java.lang.String issuer, java.lang.String authorizationEndpoint, java.lang.String tokenEndpoint, java.lang.String clientId, java.lang.String clientSecret)
Create an OpenID configuration for a specific OIDC provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addScopes(java.lang.String... scopes)
java.lang.String
getAuthEndpoint()
java.lang.String
getClientId()
java.lang.String
getClientSecret()
java.lang.String
getIssuer()
java.util.List<java.lang.String>
getScopes()
java.lang.String
getTokenEndpoint()
-
-
-
Constructor Detail
-
OpenIdConfiguration
public OpenIdConfiguration(java.lang.String provider, java.lang.String clientId, java.lang.String clientSecret)
Create an OpenID configuration for a specific OIDC provider.- Parameters:
provider
- The URL of the OpenID provider.clientId
- OAuth 2.0 Client Identifier valid at the Authorization Server.clientSecret
- The client secret known only by the Client and the Authorization Server.
-
OpenIdConfiguration
public OpenIdConfiguration(java.lang.String issuer, java.lang.String authorizationEndpoint, java.lang.String tokenEndpoint, java.lang.String clientId, java.lang.String clientSecret)
Create an OpenID configuration for a specific OIDC provider.- Parameters:
issuer
- The URL of the OpenID provider.authorizationEndpoint
- the URL of the OpenID provider's authorization endpoint if configured.tokenEndpoint
- the URL of the OpenID provider's token endpoint if configured.clientId
- OAuth 2.0 Client Identifier valid at the Authorization Server.clientSecret
- The client secret known only by the Client and the Authorization Server.
-
-
Method Detail
-
getAuthEndpoint
public java.lang.String getAuthEndpoint()
-
getClientId
public java.lang.String getClientId()
-
getClientSecret
public java.lang.String getClientSecret()
-
getIssuer
public java.lang.String getIssuer()
-
getTokenEndpoint
public java.lang.String getTokenEndpoint()
-
addScopes
public void addScopes(java.lang.String... scopes)
-
getScopes
public java.util.List<java.lang.String> getScopes()
-
-