@ComponentProfile(summary="Encode a header and body to a JSON Web Token", tag="jwt,encode,json,web,token", since="3.11.1") public class JWTEncoder extends ServiceImp
<jwt-encode>
<unique-id>jwt-encode</unique-id>
<header class="multi-payload-string-input-parameter">
<payload-id>header</payload-id>
</header>
<claims class="multi-payload-string-input-parameter">
<payload-id>claims</payload-id>
</claims>
<secret class="base64-encoded-secret">
<secret>c64975ba3cf3f9cd58459710b0a42369f34b0759c9967fb5a47eea488e8bea79</secret>
</secret>
<jwt-output class="multi-payload-string-output-parameter">
<payload-id>output</payload-id>
</jwt-output>
</jwt-encode>
In the adapter configuration file this class is aliased as jwt-encode which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
JWTEncoder() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeService()
.
|
void |
doService(AdaptrisMessage message)
.
|
DataInputParameter<java.lang.String> |
getClaims() |
DataInputParameter<java.lang.String> |
getHeader() |
DataOutputParameter<java.lang.String> |
getJwtOutput() |
SecretConfigurator |
getSecret() |
protected void |
initService()
.
|
void |
prepare()
.
|
void |
setClaims(DataInputParameter<java.lang.String> claims) |
void |
setHeader(DataInputParameter<java.lang.String> header) |
void |
setJwtOutput(DataOutputParameter<java.lang.String> jwtOutput) |
void |
setSecret(SecretConfigurator secret) |
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
public void doService(AdaptrisMessage message) throws ServiceException
ServiceException
protected void initService()
initService
in class ServiceImp
protected void closeService()
closeService
in class ServiceImp
public void prepare()
public DataInputParameter<java.lang.String> getHeader()
public void setHeader(DataInputParameter<java.lang.String> header)
public DataInputParameter<java.lang.String> getClaims()
public void setClaims(DataInputParameter<java.lang.String> claims)
public SecretConfigurator getSecret()
public void setSecret(SecretConfigurator secret)
public DataOutputParameter<java.lang.String> getJwtOutput()
public void setJwtOutput(DataOutputParameter<java.lang.String> jwtOutput)