public interface GatewayAuthentication
extends java.io.Serializable
GatewayAuthentication
is used to authenticate a Gateway Server request and using the JWE (JSON Web Encrypted) token and decode it to a JWT (JSON Web Token).
The JWE contains credentials relating to the userModifier and Type | Method and Description |
---|---|
boolean |
authorize(java.lang.String remoteServerName,
java.lang.String jwe)
Decodes the JWE (JSON Web Encrypted) token and converts it into a JWT (JSON Web Token).
|
java.lang.String |
getGatewayRedirectURL()
Returns the originating URL of the Gateway Portal from the request.
|
java.lang.String |
getGatewayRequestToken()
Returns the JWE (JSON Web Encrypted) token embedded in the request.
|
boolean |
isGatewayRequest()
Returns true if the Http Request Gateway security parameter that contains the JWE (JSON Web Encrypted) token
|
boolean isGatewayRequest()
java.lang.String getGatewayRequestToken()
java.lang.RuntimeException
- if the JWE token is not found on the requestjava.lang.String getGatewayRedirectURL()
java.lang.RuntimeException
- if the Gateway Portal URL is not found on the requestboolean authorize(java.lang.String remoteServerName, java.lang.String jwe)
remoteServerName
- of the remote server configuration that is configured on the Server Admin Appjwe
- is a base64 encoded encrypted JWE tokenjava.lang.RuntimeException
- if the remote server configuration is not found for the JWE token or if there is an error decoding the JWE