public class JWTAuthentication extends java.lang.Object implements Authentication
Constructor and Description |
---|
JWTAuthentication(java.security.PrivateKey key,
org.jose4j.jwt.JwtClaims claims)
OpenAPI Authentication based on JWT authentication for a single url.
|
JWTAuthentication(java.security.PrivateKey key,
java.lang.String channelName,
java.lang.String login)
OpenAPI Authentication based on JWT authentication for a single url.
|
JWTAuthentication(java.lang.String token)
OpenAPI Authentication based on JWT authentication for a single url.
|
JWTAuthentication(java.lang.String privateKeyPath,
java.lang.String keyPassword,
org.jose4j.jwt.JwtClaims claims)
OpenAPI Authentication based on JWT authentication for a single url.
|
JWTAuthentication(java.lang.String privateKeyPath,
java.lang.String keyPassword,
java.lang.String channelName,
java.lang.String login)
OpenAPI Authentication based on JWT authentication for a single url.
|
Modifier and Type | Method and Description |
---|---|
void |
addAuthentication(org.restlet.data.Request request) |
int |
getAcceptableDrift() |
java.lang.String |
getChannelName() |
org.jose4j.jwt.JwtClaims |
getClaims() |
int |
getDuration() |
java.lang.String |
getIpMask() |
java.security.PrivateKey |
getKey() |
java.lang.String |
getLogin() |
java.lang.String |
getToken() |
boolean |
isDeprecated()
A authentication may be available for a few time.
|
boolean |
isUseSpecificJplatformClaims() |
void |
setAcceptableDrift(int acceptableDrift) |
void |
setChannelName(java.lang.String channelName) |
void |
setClaims(org.jose4j.jwt.JwtClaims claims) |
void |
setDuration(int duration) |
void |
setIpMask(java.lang.String ipMask) |
void |
setKey(java.security.PrivateKey key) |
void |
setLogin(java.lang.String login) |
void |
setToken(java.lang.String token) |
void |
setUseSpecificJplatformClaims(boolean useSpecificJplatformClaims) |
org.restlet.data.Response |
updateAuthenticationResult(ClientSession session,
org.restlet.data.Request request,
org.restlet.data.Response response) |
public JWTAuthentication(java.lang.String privateKeyPath, java.lang.String keyPassword, java.lang.String channelName, java.lang.String login)
privateKeyPath
- the file path of the private keykeyPassword
- the password of the private keychannelName
- the remote channel namelogin
- the remote login, used to build authenticationpublic JWTAuthentication(java.security.PrivateKey key, org.jose4j.jwt.JwtClaims claims)
key
- the PrivateKey
claims
- JwtClaims
the claims to be used for token generationpublic JWTAuthentication(java.lang.String privateKeyPath, java.lang.String keyPassword, org.jose4j.jwt.JwtClaims claims)
privateKeyPath
- the file path of the private keykeyPassword
- the password of the private keyclaims
- JwtClaims
the claims to be used for token generationpublic JWTAuthentication(java.security.PrivateKey key, java.lang.String channelName, java.lang.String login)
key
- the PrivateKey
channelName
- the remote channel namelogin
- the remote login, used to build authenticationpublic JWTAuthentication(java.lang.String token)
token
- the JWT token (built outside)public void addAuthentication(org.restlet.data.Request request)
addAuthentication
in interface Authentication
public org.restlet.data.Response updateAuthenticationResult(ClientSession session, org.restlet.data.Request request, org.restlet.data.Response response)
updateAuthenticationResult
in interface Authentication
public boolean isDeprecated()
Authentication
isDeprecated
in interface Authentication
public java.security.PrivateKey getKey()
public void setKey(java.security.PrivateKey key)
public java.lang.String getChannelName()
public void setChannelName(java.lang.String channelName)
public java.lang.String getLogin()
public void setLogin(java.lang.String login)
public int getAcceptableDrift()
public void setAcceptableDrift(int acceptableDrift)
public int getDuration()
public void setDuration(int duration)
public org.jose4j.jwt.JwtClaims getClaims()
public void setClaims(org.jose4j.jwt.JwtClaims claims)
public java.lang.String getToken()
public void setToken(java.lang.String token)
public java.lang.String getIpMask()
public void setIpMask(java.lang.String ipMask)
public boolean isUseSpecificJplatformClaims()
public void setUseSpecificJplatformClaims(boolean useSpecificJplatformClaims)
Copyright © 2001-2021 Jalios SA. All Rights Reserved.