public abstract class KeyResolver extends Object
Key resolvers are used to find the discovery information of keys / certificate, based on the given context.
| Constructor and Description |
|---|
KeyResolver() |
| Modifier and Type | Method and Description |
|---|---|
abstract CertificateInfo |
getCertificateInfo(CryptoContext cryptoContext)
Returns the discovery information about a certificate, based on the given context.
|
int |
getPriority()
Returns the resolver priority.
|
abstract PrivateKeyInfo |
getPrivateKeyInfo(CryptoContext cryptoContext)
Returns the discovery information about a private key, based on the given context.
|
abstract boolean |
isApplicable(CryptoContext cryptoContext)
Checks whether this resolver is applicable for the given context.
|
void |
setPriority(int priority)
Sets the resolver priority.
|
String |
toString() |
public int getPriority()
public void setPriority(int priority)
priority - The resolver priority.public abstract boolean isApplicable(CryptoContext cryptoContext)
cryptoContext - The context informationpublic abstract PrivateKeyInfo getPrivateKeyInfo(CryptoContext cryptoContext)
cryptoContext - The context information.public abstract CertificateInfo getCertificateInfo(CryptoContext cryptoContext)
cryptoContext - The context information.Copyright © 2018 WSO2. All rights reserved.