public final class ValidationUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static URI |
requireValidRedirect(String redirect,
List<ClientRedirect> redirects)
Require that the provided string matches the set of redirection URL's.
|
static URI |
requireValidRedirect(String redirect,
Set<URI> redirects)
Require that the provided string matches the set of redirection URL's.
|
static URI |
requireValidRedirect(URI redirect,
List<ClientRedirect> redirects)
Require that the provided string matches the set of redirection URL's.
|
static SortedMap<String,ApplicationScope> |
revalidateScope(String[] requestedScopes,
SortedMap<String,ApplicationScope> originalScopes,
SortedMap<String,ApplicationScope> validScopes)
Revalidates a list of provided scopes against the originally granted
scopes, as well as the current list of valid scopes.
|
static SortedMap<String,ApplicationScope> |
revalidateScope(String requestedScopes,
SortedMap<String,ApplicationScope> originalScopes,
Role role)
Revalidate a list of scopes against an originally granted list, as
well as the current list of valid scopes from a user's role.
|
static SortedMap<String,ApplicationScope> |
revalidateScope(String requestedScopes,
SortedMap<String,ApplicationScope> originalScopes,
SortedMap<String,ApplicationScope> validScopes)
Revalidates a list of provided scopes against the originally granted
scopes, as well as the current list of valid scopes.
|
static Authenticator |
validateAuthenticator(AuthenticatorType type,
List<Authenticator> authenticators)
Ensure that an authenticator, requested by name, is valid within a
specific list of authenticators.
|
static URI |
validateRedirect(String redirect,
List<ClientRedirect> redirects)
This method assists in determining if a particular URI is valid for
the scope of this client.
|
static URI |
validateRedirect(String redirect,
Set<URI> redirects)
This method assists in determining if a particular URI is valid for
the scope of this client.
|
static URI |
validateRedirect(URI redirect,
List<ClientRedirect> redirects)
This method assists in determining if a particular URI is valid for
the scope of this client.
|
static URI |
validateRedirect(URI redirect,
Set<URI> redirects)
This method assists in determining if a particular URI is valid for
the scope of this client.
|
static void |
validateResponseType(Client client,
String responseType)
Validate that a response type is appropriate for a given client.
|
static SortedMap<String,ApplicationScope> |
validateScope(SortedMap<String,ApplicationScope> requestedScopes,
Role role)
Ensure that a requested list of scopes is permitted for a specific role.
|
static SortedMap<String,ApplicationScope> |
validateScope(String[] requestedScopes,
SortedMap<String,ApplicationScope> validScopes)
Creates a collection of scopes from a list of valid scopes.
|
static SortedMap<String,ApplicationScope> |
validateScope(String requestedScopes,
Role role)
Validate a list of scopes against a role.
|
static SortedMap<String,ApplicationScope> |
validateScope(String requestedScopes,
SortedMap<String,ApplicationScope> validScopes)
Creates a collection of scopes from a list of valid scopes.
|
public static void validateResponseType(Client client, String responseType)
client - The client to check.responseType - The requested response type.public static URI requireValidRedirect(URI redirect, List<ClientRedirect> redirects)
redirect - The URI to check.redirects - A set of redirect url's to check against.public static URI requireValidRedirect(String redirect, List<ClientRedirect> redirects)
redirect - The URI to check.redirects - A set of redirect url's to check against.public static URI requireValidRedirect(String redirect, Set<URI> redirects)
redirect - The URI to check.redirects - A set of redirect url's to check against.public static URI validateRedirect(URI redirect, List<ClientRedirect> redirects)
redirect - The URI to check.redirects - A set of redirect url's to check against.public static URI validateRedirect(String redirect, List<ClientRedirect> redirects)
redirect - The URI to check.redirects - A set of redirect url's to check against.public static URI validateRedirect(URI redirect, Set<URI> redirects)
redirect - The URI to check.redirects - A set of redirect url's to check against.public static URI validateRedirect(String redirect, Set<URI> redirects)
redirect - The URI to check.redirects - A set of redirect url's to check against.public static SortedMap<String,ApplicationScope> validateScope(String[] requestedScopes, SortedMap<String,ApplicationScope> validScopes)
requestedScopes - An array of requested scopes.validScopes - A list of valid scopes.public static SortedMap<String,ApplicationScope> validateScope(String requestedScopes, SortedMap<String,ApplicationScope> validScopes)
requestedScopes - An array of requested scopes.validScopes - A string of valid scopes.public static SortedMap<String,ApplicationScope> validateScope(SortedMap<String,ApplicationScope> requestedScopes, Role role)
requestedScopes - The requested client scopes.role - The role.public static SortedMap<String,ApplicationScope> validateScope(String requestedScopes, Role role)
requestedScopes - An array of requested scopes.role - The role.public static SortedMap<String,ApplicationScope> revalidateScope(String[] requestedScopes, SortedMap<String,ApplicationScope> originalScopes, SortedMap<String,ApplicationScope> validScopes)
requestedScopes - An array of requested scopes.originalScopes - The original set of scopes.validScopes - The current list of valid scopes.public static SortedMap<String,ApplicationScope> revalidateScope(String requestedScopes, SortedMap<String,ApplicationScope> originalScopes, SortedMap<String,ApplicationScope> validScopes)
requestedScopes - An array of requested scopes.originalScopes - The original set of scopes.validScopes - The current list of valid scopes.public static SortedMap<String,ApplicationScope> revalidateScope(String requestedScopes, SortedMap<String,ApplicationScope> originalScopes, Role role)
requestedScopes - A space-separated list of scopes.originalScopes - The original set of scopes.role - The user's role to check for a scope list.public static Authenticator validateAuthenticator(AuthenticatorType type, List<Authenticator> authenticators)
type - The requested authenticator type.authenticators - The list of authenticators to test against.Copyright © 2018 krotscheck.net. All rights reserved.