public class UriService extends Object
Constructor and Description |
---|
UriService(org.forgerock.openig.tools.am.RealmNormalizer normalizer,
Realm realm,
URI baseUri)
Constructs a new URI service.
|
Modifier and Type | Method and Description |
---|---|
URI |
getBaseUri()
Return the base URI for this server.
|
String |
json()
Build the endpoint URI for an endpoint located in the
/json namespace. |
String |
json(String endpoint)
Build the endpoint URI for an endpoint located in the
/json namespace. |
URI |
jsonUri()
Build the endpoint URI for an endpoint located in the
/json namespace. |
URI |
jsonUri(String endpoint)
Build the endpoint URI for an endpoint located in the
/json namespace. |
String |
oauth2(String endpoint)
Build the endpoint URI for an endpoint located in the
/oauth2 namespace. |
URI |
oauth2Uri(String endpoint)
Build the endpoint URI for an endpoint located in the
/oauth2 namespace. |
String |
sts()
Returns the transformation endpoint located in the
/rest-sts namespace. |
String |
sts(String endpoint)
Returns the transformation endpoint located in the
/rest-sts namespace. |
URI |
stsUri(String endpoint)
Returns the URI of the transformation endpoint located in the
/rest-sts namespace. |
String |
uma(String endpoint)
Build the endpoint URI for an endpoint located in the
/uma namespace. |
URI |
umaUri(String endpoint)
Build the endpoint URI for an endpoint located in the
/uma namespace. |
URI |
websocketUri(String path)
Build a websocket URI, based on this server's
baseUri . |
public URI getBaseUri()
public URI websocketUri(String path)
baseUri
.
If server URI is secure (https), then the returned websocket uri will also use the secure websocket scheme (wss), returns ws scheme instead.
path
- URL path to the web-socket endpointpublic String json()
/json
namespace.public String json(String endpoint)
/json
namespace.endpoint
- endpoint name, such as policies or /serverinfo/version. The endpoint MUST be a
proper encoded path.public URI jsonUri()
/json
namespace.public URI jsonUri(String endpoint)
/json
namespace.endpoint
- endpoint name, such as policies or /serverinfo/version. The endpoint MUST be a
proper encoded path.public String oauth2(String endpoint)
/oauth2
namespace.endpoint
- endpoint name, such as .well-known/openid-configuration or /authorize. The endpoint
MUST be a proper encoded path.public URI oauth2Uri(String endpoint)
/oauth2
namespace.endpoint
- endpoint name, such as .well-known/openid-configuration or /authorize. The endpoint
MUST be a proper encoded path.public String uma(String endpoint)
/uma
namespace.endpoint
- endpoint name, such as .well-known/uma-configuration or /authz_request. The
endpoint MUST be a proper encoded path.public String sts()
/rest-sts
namespace./rest-sts
namespace.public String sts(String endpoint)
/rest-sts
namespace.endpoint
- The endpoint name, such as rest-sts/username-transformer. The endpoint MUST be a proper
encoded path./rest-sts
namespace.public URI stsUri(String endpoint)
/rest-sts
namespace.endpoint
- The endpoint name, such as rest-sts/username-transformer. The endpoint MUST be a proper
encoded path.Copyright 2011-2017 ForgeRock AS.