public interface TokenDecoder
| Modifier and Type | Method and Description |
|---|---|
AuthToken |
decodeFromBytes(byte[] content)
Decode a token from a bytes array.
|
AuthToken |
decodeFromString(String content)
Decode a token from a string.
|
boolean |
isSigned()
The token signed or not
|
void |
setDecryptionKey(byte[] key)
Set the decryption key
|
void |
setDecryptionKey(PrivateKey key)
Set the decryption key
|
void |
setVerifyKey(byte[] key)
set the verify key
|
void |
setVerifyKey(PublicKey key)
set the verify key
|
AuthToken decodeFromBytes(byte[] content) throws IOException
content - The contentIOException - eAuthToken decodeFromString(String content) throws IOException
content - The contentIOException - evoid setVerifyKey(PublicKey key)
key - a public keyvoid setVerifyKey(byte[] key)
key - a byte[] keyvoid setDecryptionKey(PrivateKey key)
key - a private keyvoid setDecryptionKey(byte[] key)
key - a secret keyboolean isSigned()
Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.