public class PairwiseSubMapperUtils extends Object
| Constructor and Description |
|---|
PairwiseSubMapperUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<ProtocolMapperRepresentation> |
getPairwiseSubMappers(ClientRepresentation client) |
static boolean |
matchesRedirects(String clientRootUrl,
Set<String> clientRedirectUris,
Set<String> sectorRedirects)
Checks if the the registered client redirect URIs matches the set of redirect URIs from the sector identifier URI.
|
static Set<String> |
resolveValidRedirectUris(String clientRootUrl,
Collection<String> clientRedirectUris)
Returns a set of valid redirect URIs from the root url and redirect URIs registered on a client.
|
static String |
resolveValidSectorIdentifier(String sectorIdentifierUri)
Tries to resolve a valid sector identifier from a sector identifier URI.
|
static String |
resolveValidSectorIdentifier(String clientRootUrl,
Set<String> clientRedirectUris)
Tries to resolve a valid sector identifier from the redirect URIs registered on a client.
|
public static Set<String> resolveValidRedirectUris(String clientRootUrl, Collection<String> clientRedirectUris)
clientRootUrl - clientRedirectUris - public static String resolveValidSectorIdentifier(String sectorIdentifierUri)
sectorIdentifierUri - public static String resolveValidSectorIdentifier(String clientRootUrl, Set<String> clientRedirectUris)
clientRootUrl - Root url registered on the client.clientRedirectUris - Redirect URIs registered on the client.null.public static boolean matchesRedirects(String clientRootUrl, Set<String> clientRedirectUris, Set<String> sectorRedirects)
clientRootUrl - root url registered on the client.clientRedirectUris - redirect URIs registered on the client.sectorRedirects - value of the sector identifier URI.true iff. the all the redirect URIs can be described by the sectorRedirects, i.e if the registered redirect URIs is a subset of the sectorRedirects, otherwise false.public static List<ProtocolMapperRepresentation> getPairwiseSubMappers(ClientRepresentation client)
Copyright © 2021 JBoss by Red Hat. All rights reserved.