Package org.forgerock.openig.ping
Class PingOneService
java.lang.Object
org.forgerock.openig.ping.PingOneService
The
PingOneService
supports integration with PingOne environments, providing the service URI (or base URI in
the case of REST actions), and a handler to be used with these endpoints. The endpointHandler
should be
configured so as to correctly obtain required PingOne authorization (e.g. an access_token).
{
"type": "PingOneService",
"config": {
"serviceEndpoint" : Config Expression<URI> [REQUIRED - The environment's service endpoint URI.]
"endpointHandler" : Handler [OPTIONAL - The Handler to use to make requests on the
service endpoints - defaults to the
heap-defined ForgeRockClientHandler.]
}
}
The example configuration below illustrates PingOne Protect service config:
{
"name" : "pingOneProtectService",
"type" : "PingOneService",
"config" : {
"serviceEndpoint" : "https://&{api}/v1/environments/&{env}",
"endpointHandler" : "evaluationEndpointHandler"
}
}
Notes:
-
The
serviceEndpoint
is the root service endpoint for the given environment, from which other endpoint URIs may be derived - e.g. the PingOne Protectrisk evaluation endpoint
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Creates and initialises aPingOneService
in a heap environment. -
Method Summary
Modifier and TypeMethodDescriptionGet theHandler
providing access to the service endpoint.Get the PingOne Protect risk evaluation endpoint URI.Get the service endpoint URI.
-
Method Details
-
getServiceEndpoint
Get the service endpoint URI.- Returns:
- the service endpoint URI
-
getRiskEvaluationEndpoint
Get the PingOne Protect risk evaluation endpoint URI.- Returns:
- the risk evaluation endpoint URI
-
getEndpointHandler
Get theHandler
providing access to the service endpoint.- Returns:
- the service endpoint
Handler
-