public interface TokenEncoder
| Modifier and Type | Method and Description |
|---|---|
byte[] |
encodeAsBytes(AuthToken token)
Encode a token resulting in a bytes array.
|
String |
encodeAsString(AuthToken token)
Encode a token resulting in a string.
|
void |
setEncryptionKey(byte[] key)
set the encryption key
|
void |
setEncryptionKey(PublicKey key)
set the encryption key
|
void |
setSignKey(byte[] key)
set the sign key
|
void |
setSignKey(PrivateKey key)
set the sign key
|
byte[] encodeAsBytes(AuthToken token) throws KrbException
token - The auth tokenKrbException - eString encodeAsString(AuthToken token) throws KrbException
token - The auth tokenKrbException - evoid setEncryptionKey(PublicKey key)
key - a public keyvoid setEncryptionKey(byte[] key)
key - a secret keyvoid setSignKey(PrivateKey key)
key - a private keyvoid setSignKey(byte[] key)
key - a secret keyCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.