public class JwtTokenEncoder extends Object implements TokenEncoder
| Constructor and Description |
|---|
JwtTokenEncoder() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encodeAsBytes(AuthToken token) |
String |
encodeAsString(AuthToken token) |
com.nimbusds.jose.EncryptionMethod |
getEncryptionMethod() |
com.nimbusds.jose.JWEAlgorithm |
getJweAlgorithm() |
com.nimbusds.jose.JWSAlgorithm |
getJwsAlgorithm() |
void |
setEncryptionKey(byte[] key) |
void |
setEncryptionKey(PublicKey key) |
void |
setEncryptionMethod(com.nimbusds.jose.EncryptionMethod encryptionMethod) |
void |
setJweAlgorithm(com.nimbusds.jose.JWEAlgorithm jweAlgorithm) |
void |
setJwsAlgorithm(com.nimbusds.jose.JWSAlgorithm jwsAlgorithm) |
void |
setSignKey(byte[] key) |
void |
setSignKey(PrivateKey key) |
public byte[] encodeAsBytes(AuthToken token) throws KrbException
encodeAsBytes in interface TokenEncoderKrbExceptionpublic String encodeAsString(AuthToken token) throws KrbException
encodeAsString in interface TokenEncoderKrbExceptionpublic void setEncryptionKey(PublicKey key)
setEncryptionKey in interface TokenEncoderpublic void setEncryptionKey(byte[] key)
setEncryptionKey in interface TokenEncoderpublic void setSignKey(PrivateKey key)
setSignKey in interface TokenEncoderpublic void setSignKey(byte[] key)
setSignKey in interface TokenEncoderpublic com.nimbusds.jose.JWEAlgorithm getJweAlgorithm()
public void setJweAlgorithm(com.nimbusds.jose.JWEAlgorithm jweAlgorithm)
public com.nimbusds.jose.JWSAlgorithm getJwsAlgorithm()
public void setJwsAlgorithm(com.nimbusds.jose.JWSAlgorithm jwsAlgorithm)
public com.nimbusds.jose.EncryptionMethod getEncryptionMethod()
public void setEncryptionMethod(com.nimbusds.jose.EncryptionMethod encryptionMethod)
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.