Package com.nimbusds.oauth2.sdk.as
Class AuthorizationServerEndpointMetadata
- java.lang.Object
-
- com.nimbusds.oauth2.sdk.as.AuthorizationServerEndpointMetadata
-
- All Implemented Interfaces:
ReadOnlyAuthorizationServerEndpointMetadata
- Direct Known Subclasses:
AuthorizationServerMetadata,OIDCProviderEndpointMetadata
public class AuthorizationServerEndpointMetadata extends Object implements ReadOnlyAuthorizationServerEndpointMetadata
OAuth 2.0 Authorisation Server (AS) endpoint metadata.Related specifications:
- OAuth 2.0 Authorization Server Metadata (RFC 8414)
- OAuth 2.0 Mutual TLS Client Authentication and Certificate Bound Access Tokens (RFC 8705)
- OAuth 2.0 Pushed Authorization Requests (RFC 9126)
- OAuth 2.0 Device Authorization Grant (RFC 8628)
- OpenID Connect Client Initiated Backchannel Authentication Flow - Core 1.0
-
-
Constructor Summary
Constructors Constructor Description AuthorizationServerEndpointMetadata()Creates a new OAuth 2.0 Authorisation Server (AS) endpoint metadata instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description URIgetAuthorizationEndpointURI()Gets the authorisation endpoint URI.URIgetBackChannelAuthenticationEndpoint()Deprecated.URIgetBackChannelAuthenticationEndpointURI()Gets the back-channel authentication endpoint URI.URIgetDeviceAuthorizationEndpointURI()Gets the device authorization endpoint URI.URIgetIntrospectionEndpointURI()Gets the token introspection endpoint URI.URIgetPushedAuthorizationRequestEndpointURI()Gets the pushed authorisation request endpoint.static Set<String>getRegisteredParameterNames()Gets the registered provider metadata parameter names for endpoints.URIgetRegistrationEndpointURI()Gets the client registration endpoint URI.URIgetRequestObjectEndpoint()Deprecated.URIgetRevocationEndpointURI()Gets the token revocation endpoint URI.URIgetTokenEndpointURI()Gets the token endpoint URI.static AuthorizationServerEndpointMetadataparse(net.minidev.json.JSONObject jsonObject)Parses an OAuth 2.0 Authorisation Server endpoint metadata from the specified JSON object.voidsetAuthorizationEndpointURI(URI authzEndpoint)Sets the authorisation endpoint URI.voidsetBackChannelAuthenticationEndpoint(URI backChannelAuthEndpoint)Deprecated.voidsetBackChannelAuthenticationEndpointURI(URI backChannelAuthEndpoint)Sets the back-channel authentication endpoint URI.voidsetDeviceAuthorizationEndpointURI(URI deviceAuthzEndpoint)Sets the device authorization endpoint URI.voidsetIntrospectionEndpointURI(URI introspectionEndpoint)Sets the token introspection endpoint URI.voidsetPushedAuthorizationRequestEndpointURI(URI parEndpoint)Gets the pushed authorisation request endpoint.voidsetRegistrationEndpointURI(URI regEndpoint)Sets the client registration endpoint URI.voidsetRequestObjectEndpoint(URI requestObjectEndpoint)Deprecated.voidsetRevocationEndpointURI(URI revocationEndpoint)Sets the token revocation endpoint URI.voidsetTokenEndpointURI(URI tokenEndpoint)Sts the token endpoint URI.net.minidev.json.JSONObjecttoJSONObject()Returns the JSON object representation of the metadata.StringtoString()
-
-
-
Constructor Detail
-
AuthorizationServerEndpointMetadata
public AuthorizationServerEndpointMetadata()
Creates a new OAuth 2.0 Authorisation Server (AS) endpoint metadata instance.
-
-
Method Detail
-
getRegisteredParameterNames
public static Set<String> getRegisteredParameterNames()
Gets the registered provider metadata parameter names for endpoints.- Returns:
- The registered provider metadata parameter names for endpoints, as an unmodifiable set.
-
getAuthorizationEndpointURI
public URI getAuthorizationEndpointURI()
Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadataGets the authorisation endpoint URI. Corresponds theauthorization_endpointmetadata field.- Specified by:
getAuthorizationEndpointURIin interfaceReadOnlyAuthorizationServerEndpointMetadata- Returns:
- The authorisation endpoint URI,
nullif not specified.
-
setAuthorizationEndpointURI
public void setAuthorizationEndpointURI(URI authzEndpoint)
Sets the authorisation endpoint URI. Corresponds theauthorization_endpointmetadata field.- Parameters:
authzEndpoint- The authorisation endpoint URI,nullif not specified.
-
getTokenEndpointURI
public URI getTokenEndpointURI()
Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadataGets the token endpoint URI. Corresponds thetoken_endpointmetadata field.- Specified by:
getTokenEndpointURIin interfaceReadOnlyAuthorizationServerEndpointMetadata- Returns:
- The token endpoint URI,
nullif not specified.
-
setTokenEndpointURI
public void setTokenEndpointURI(URI tokenEndpoint)
Sts the token endpoint URI. Corresponds thetoken_endpointmetadata field.- Parameters:
tokenEndpoint- The token endpoint URI,nullif not specified.
-
getRegistrationEndpointURI
public URI getRegistrationEndpointURI()
Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadataGets the client registration endpoint URI. Corresponds to theregistration_endpointmetadata field.- Specified by:
getRegistrationEndpointURIin interfaceReadOnlyAuthorizationServerEndpointMetadata- Returns:
- The client registration endpoint URI,
nullif not specified.
-
setRegistrationEndpointURI
public void setRegistrationEndpointURI(URI regEndpoint)
Sets the client registration endpoint URI. Corresponds to theregistration_endpointmetadata field.- Parameters:
regEndpoint- The client registration endpoint URI,nullif not specified.
-
getIntrospectionEndpointURI
public URI getIntrospectionEndpointURI()
Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadataGets the token introspection endpoint URI. Corresponds to theintrospection_endpointmetadata field.- Specified by:
getIntrospectionEndpointURIin interfaceReadOnlyAuthorizationServerEndpointMetadata- Returns:
- The token introspection endpoint URI,
nullif not specified.
-
setIntrospectionEndpointURI
public void setIntrospectionEndpointURI(URI introspectionEndpoint)
Sets the token introspection endpoint URI. Corresponds to theintrospection_endpointmetadata field.- Parameters:
introspectionEndpoint- The token introspection endpoint URI,nullif not specified.
-
getRevocationEndpointURI
public URI getRevocationEndpointURI()
Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadataGets the token revocation endpoint URI. Corresponds to therevocation_endpointmetadata field.- Specified by:
getRevocationEndpointURIin interfaceReadOnlyAuthorizationServerEndpointMetadata- Returns:
- The token revocation endpoint URI,
nullif not specified.
-
setRevocationEndpointURI
public void setRevocationEndpointURI(URI revocationEndpoint)
Sets the token revocation endpoint URI. Corresponds to therevocation_endpointmetadata field.- Parameters:
revocationEndpoint- The token revocation endpoint URI,nullif not specified.
-
getRequestObjectEndpoint
@Deprecated public URI getRequestObjectEndpoint()
Deprecated.Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadataGets the request object endpoint. Corresponds to therequest_object_endpointmetadata field.- Specified by:
getRequestObjectEndpointin interfaceReadOnlyAuthorizationServerEndpointMetadata- Returns:
- The request object endpoint,
nullif not specified.
-
setRequestObjectEndpoint
@Deprecated public void setRequestObjectEndpoint(URI requestObjectEndpoint)
Deprecated.Sets the request object endpoint. Corresponds to therequest_object_endpointmetadata field.- Parameters:
requestObjectEndpoint- The request object endpoint,nullif not specified.
-
getPushedAuthorizationRequestEndpointURI
public URI getPushedAuthorizationRequestEndpointURI()
Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadataGets the pushed authorisation request endpoint. Corresponds to thepushed_authorization_request_endpointmetadata field.- Specified by:
getPushedAuthorizationRequestEndpointURIin interfaceReadOnlyAuthorizationServerEndpointMetadata- Returns:
- The pushed authorisation request endpoint,
nullif not specified.
-
setPushedAuthorizationRequestEndpointURI
public void setPushedAuthorizationRequestEndpointURI(URI parEndpoint)
Gets the pushed authorisation request endpoint. Corresponds to thepushed_authorization_request_endpointmetadata field.- Parameters:
parEndpoint- The pushed authorisation request endpoint,nullif not specified.
-
getDeviceAuthorizationEndpointURI
public URI getDeviceAuthorizationEndpointURI()
Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadataGets the device authorization endpoint URI. Corresponds thedevice_authorization_endpointmetadata field.- Specified by:
getDeviceAuthorizationEndpointURIin interfaceReadOnlyAuthorizationServerEndpointMetadata- Returns:
- The device authorization endpoint URI,
nullif not specified.
-
setDeviceAuthorizationEndpointURI
public void setDeviceAuthorizationEndpointURI(URI deviceAuthzEndpoint)
Sets the device authorization endpoint URI. Corresponds thedevice_authorization_endpointmetadata field.- Parameters:
deviceAuthzEndpoint- The device authorization endpoint URI,nullif not specified.
-
getBackChannelAuthenticationEndpointURI
public URI getBackChannelAuthenticationEndpointURI()
Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadataGets the back-channel authentication endpoint URI. Corresponds thebackchannel_authentication_endpointmetadata field.- Specified by:
getBackChannelAuthenticationEndpointURIin interfaceReadOnlyAuthorizationServerEndpointMetadata- Returns:
- The back-channel authentication endpoint URI,
nullif not specified.
-
getBackChannelAuthenticationEndpoint
@Deprecated public URI getBackChannelAuthenticationEndpoint()
Deprecated.Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadataGets the back-channel authentication endpoint URI. Corresponds thebackchannel_authentication_endpointmetadata field.- Specified by:
getBackChannelAuthenticationEndpointin interfaceReadOnlyAuthorizationServerEndpointMetadata- Returns:
- The back-channel authentication endpoint URI,
nullif not specified.
-
setBackChannelAuthenticationEndpointURI
public void setBackChannelAuthenticationEndpointURI(URI backChannelAuthEndpoint)
Sets the back-channel authentication endpoint URI. Corresponds thebackchannel_authentication_endpointmetadata field.- Parameters:
backChannelAuthEndpoint- The back-channel authentication e endpoint URI,nullif not specified.
-
setBackChannelAuthenticationEndpoint
@Deprecated public void setBackChannelAuthenticationEndpoint(URI backChannelAuthEndpoint)
Deprecated.Sets the back-channel authentication endpoint URI. Corresponds thebackchannel_authentication_endpointmetadata field.- Parameters:
backChannelAuthEndpoint- The back-channel authentication e endpoint URI,nullif not specified.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Description copied from interface:ReadOnlyAuthorizationServerEndpointMetadataReturns the JSON object representation of the metadata.- Specified by:
toJSONObjectin interfaceReadOnlyAuthorizationServerEndpointMetadata- Returns:
- The JSON object.
-
parse
public static AuthorizationServerEndpointMetadata parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses an OAuth 2.0 Authorisation Server endpoint metadata from the specified JSON object.- Parameters:
jsonObject- The JSON object to parse. Must not benull.- Returns:
- The OAuth 2.0 Authorisation Server endpoint metadata.
- Throws:
ParseException- If the JSON object couldn't be parsed to an OAuth 2.0 Authorisation Server endpoint metadata.
-
-