Package org.forgerock.openig.tools.am
Class UriService
java.lang.Object
org.forgerock.openig.tools.am.UriService
Computes AM endpoint URIs, based on path normalizer, realm and a base Uri.
- 
Constructor Summary
ConstructorsConstructorDescriptionUriService(RealmNormalizer normalizer, Realm realm, URI baseUri) Constructs a new URI service. - 
Method Summary
Modifier and TypeMethodDescriptionReturn the base URI for this server.json()Build the endpoint URI for an endpoint located in the/jsonnamespace.Build the endpoint URI for an endpoint located in the/jsonnamespace.jsonUri()Build the endpoint URI for an endpoint located in the/jsonnamespace.Build the endpoint URI for an endpoint located in the/jsonnamespace.Build the endpoint URI for an endpoint located in the/oauth2namespace.Build the endpoint URI for an endpoint located in the/oauth2namespace.sts()Returns the transformation endpoint located in the/rest-stsnamespace.Returns the transformation endpoint located in the/rest-stsnamespace.Returns the URI of the transformation endpoint located in the/rest-stsnamespace.Build the endpoint URI for an endpoint located in the/umanamespace.Build the endpoint URI for an endpoint located in the/umanamespace.websocketUri(String path) Build a websocket URI, based on this server'sbaseUri. 
- 
Constructor Details
- 
UriService
Constructs a new URI service.- Parameters:
 normalizer- Realm normalizer (nevernull)realm- AM realm (nevernull)baseUri- AM server base URI (nevernull)
 
 - 
 - 
Method Details
- 
getBaseUri
Return the base URI for this server.- Returns:
 - the base URI for this server.
 
 - 
websocketUri
Build a websocket URI, based on this server'sbaseUri.If server URI is secure (https), then the returned websocket uri will also use the secure websocket scheme (wss), returns ws scheme instead.
- Parameters:
 path- URL path to the web-socket endpoint- Returns:
 - an absolute websocket URI.
 
 - 
json
Build the endpoint URI for an endpoint located in the/jsonnamespace.- Returns:
 - an absolute endpoint URI.
 
 - 
json
Build the endpoint URI for an endpoint located in the/jsonnamespace.- Parameters:
 endpoint- endpoint name, such as policies or /serverinfo/version. The endpoint MUST be a proper encoded path.- Returns:
 - an absolute endpoint URI.
 
 - 
jsonUri
Build the endpoint URI for an endpoint located in the/jsonnamespace.- Returns:
 - an absolute endpoint URI.
 
 - 
jsonUri
Build the endpoint URI for an endpoint located in the/jsonnamespace.- Parameters:
 endpoint- endpoint name, such as policies or /serverinfo/version. The endpoint MUST be a proper encoded path.- Returns:
 - an absolute endpoint URI
 
 - 
oauth2
Build the endpoint URI for an endpoint located in the/oauth2namespace.- Parameters:
 endpoint- endpoint name, such as .well-known/openid-configuration or /authorize. The endpoint MUST be a proper encoded path.- Returns:
 - an absolute endpoint URI
 
 - 
oauth2Uri
Build the endpoint URI for an endpoint located in the/oauth2namespace.- Parameters:
 endpoint- endpoint name, such as .well-known/openid-configuration or /authorize. The endpoint MUST be a proper encoded path.- Returns:
 - an absolute endpoint URI.
 
 - 
uma
Build the endpoint URI for an endpoint located in the/umanamespace.- Parameters:
 endpoint- endpoint name, such as .well-known/uma-configuration or /authz_request. The endpoint MUST be a proper encoded path.- Returns:
 - an absolute endpoint URI.
 
 - 
sts
Returns the transformation endpoint located in the/rest-stsnamespace.- Returns:
 - the transformation endpoint located in the 
/rest-stsnamespace. 
 - 
sts
Returns the transformation endpoint located in the/rest-stsnamespace.- Parameters:
 endpoint- The endpoint name, such as rest-sts/username-transformer. The endpoint MUST be a proper encoded path.- Returns:
 - the transformation endpoint located in the 
/rest-stsnamespace. 
 - 
stsUri
Returns the URI of the transformation endpoint located in the/rest-stsnamespace.- Parameters:
 endpoint- The endpoint name, such as rest-sts/username-transformer. The endpoint MUST be a proper encoded path.- Returns:
 - an absolute endpoint URI.
 
 - 
umaUri
Build the endpoint URI for an endpoint located in the/umanamespace.- Parameters:
 endpoint- endpoint name, such as .well-known/uma-configuration or /authz_request. The endpoint MUST be a proper encoded path.- Returns:
 - an absolute endpoint URI.
 
 
 -