Class SectorIDURIValidator
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.id.SectorIDURIValidator
-
public class SectorIDURIValidator extends Object
Sector identifier URI validator.Related specifications:
- OpenID Connect Core 1.0, section 8.1.
- OpenID Connect Dynamic Client Registration 1.0, section 5.
- OpenID Connect CIBA Flow - Core 1.0, section 4.
-
-
Constructor Summary
Constructors Constructor Description SectorIDURIValidator(com.nimbusds.jose.util.ResourceRetriever resourceRetriever)Creates a new sector ID URI validator.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Set<URI>collectURIsForValidation(OIDCClientMetadata clientMetadata)Collects the client URIs for sector ID validation.com.nimbusds.jose.util.ResourceRetrievergetResourceRetriever()Returns the URL resource retriever.voidvalidate(URI sectorURI, Set<URI> urisToValidate)Validates the specified URIs for being present in a sector ID document.
-
-
-
Constructor Detail
-
SectorIDURIValidator
public SectorIDURIValidator(com.nimbusds.jose.util.ResourceRetriever resourceRetriever)
Creates a new sector ID URI validator.- Parameters:
resourceRetriever- The URL resource retriever to use. Must not benull.
-
-
Method Detail
-
getResourceRetriever
public com.nimbusds.jose.util.ResourceRetriever getResourceRetriever()
Returns the URL resource retriever.- Returns:
- The resource retriever.
-
validate
public void validate(URI sectorURI, Set<URI> urisToValidate) throws GeneralException
Validates the specified URIs for being present in a sector ID document.- Parameters:
sectorURI- The sector ID URI. Must not benull.urisToValidate- The client URIs to check for being present in the sector ID JSON document. Must not benull.- Throws:
GeneralException- If validation failed.
-
collectURIsForValidation
public static Set<URI> collectURIsForValidation(OIDCClientMetadata clientMetadata)
Collects the client URIs for sector ID validation.For the OAuth 2.0 authorisation code and implicit grants:
redirect_uris.For the OAuth 2.0 CIBA grant:
jwks_urifor the poll and ping token delivery modes,backchannel_client_notification_endpointfor the push mode.- Parameters:
clientMetadata- The client metadata. Must not benull.- Returns:
- The URIs for sector ID validation, empty set if none.
-
-