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.
-
-
Constructor Summary
Constructors Constructor Description SectorIDURIValidator(com.nimbusds.jose.util.ResourceRetriever resourceRetriever)Creates a new sector identifier URI validator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.nimbusds.jose.util.ResourceRetrievergetResourceRetriever()Returns the URL resource retriever.voidvalidate(URI sectorURI, Set<URI> redirectURIs)Validates the specified sector identifier URI by ensuring it lists all specified redirection URIs.
-
-
-
Constructor Detail
-
SectorIDURIValidator
public SectorIDURIValidator(com.nimbusds.jose.util.ResourceRetriever resourceRetriever)
Creates a new sector identifier 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> redirectURIs) throws GeneralException
Validates the specified sector identifier URI by ensuring it lists all specified redirection URIs.- Parameters:
sectorURI- The sector identifier URI. Must not benull.redirectURIs- The redirection URIs of the client. Must not benull.- Throws:
GeneralException- If validation failed.
-
-