public class FakeKeyProvider extends Object implements AuthorityKeyProvider
| Constructor and Description |
|---|
FakeKeyProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentSigningKeyId()
Get current key id for signing JWT token.
|
KeyType |
getKeyType(String keyId)
Get the type of the related key.
|
String |
getPrivateKey(String keyId)
Get private key for given key id.
|
String |
getPublicKey(String keyId)
Get public key for given key id.
|
io.jsonwebtoken.SignatureAlgorithm |
getSignatureAlgorithm(String keyId)
Get the signature algorithm of the related key.
|
public String getCurrentSigningKeyId()
AuthorityKeyProvidergetCurrentSigningKeyId in interface AuthorityKeyProviderpublic String getPrivateKey(String keyId)
KeyProvidergetPrivateKey in interface KeyProviderkeyId - Unique id of the desired key.public String getPublicKey(String keyId)
KeyProvidergetPublicKey in interface KeyProviderkeyId - Unique id of the desired key.public KeyType getKeyType(String keyId)
KeyProvidergetKeyType in interface KeyProviderkeyId - Unique id of the related key.public io.jsonwebtoken.SignatureAlgorithm getSignatureAlgorithm(String keyId)
AuthorityKeyProvidergetSignatureAlgorithm in interface AuthorityKeyProviderkeyId - Unique id of the related key.SignatureAlgorithm value.Copyright © 2017 S&C Software. All rights reserved.