public class OA2ClientUtils extends Object
Created by Jeff Gaynor
on 3/17/14 at 12:57 PM
Modifier and Type | Class and Description |
---|---|
static class |
OA2ClientUtils.InvalidRedirectError |
static class |
OA2ClientUtils.NoClientIDException |
static class |
OA2ClientUtils.NoRegisteredRedirectError |
static class |
OA2ClientUtils.NoScopesError |
Constructor and Description |
---|
OA2ClientUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
check(Client client,
String redirect)
Note that all of the exceptions thrown here are because the callback cannot be verified, hence it is unclear
where the error is to be sent.
|
static LinkedList<String> |
createCallbacks(List<String> rawCBs,
List<String> dudUris)
This takes a list of callbacks and checks policies for each of them.
|
static LinkedList<String> |
createCallbacksForWebUI(OA2Client client,
String rawCBs)
This is for use with the web interface.
|
protected static boolean |
isOnPrivateNetwork(String address) |
protected static boolean |
isPrivate(String host,
String scheme) |
protected static int[] |
toQuad(String address) |
public static void check(Client client, String redirect)
client
- redirect
- public static LinkedList<String> createCallbacks(List<String> rawCBs, List<String> dudUris) throws IOException
rawCBs
- dudUris
- -- this is a list of any URIs that are rejected. The caller may do with them what they will.IOException
public static LinkedList<String> createCallbacksForWebUI(OA2Client client, String rawCBs) throws IOException
client
- rawCBs
- IOException
protected static int[] toQuad(String address)
protected static boolean isOnPrivateNetwork(String address)
Copyright © 2019. All Rights Reserved.