public interface PublicKeyLocator
Modifier and Type | Interface and Description |
---|---|
static interface |
PublicKeyLocator.Builder
A builder that creates a
PublicKeyLocator . |
static interface |
PublicKeyLocator.Criteria
Criteria for a public key search as obtained from the JOSE header.
|
static class |
PublicKeyLocator.StrategyType
An enumeration of strategy types for locating public keys.
|
static interface |
PublicKeyLocator.Thumbprint
An object that encapsulates the algorithms and matching operations for
certificate thumbprints provided in the JOSE header.
|
Modifier and Type | Method and Description |
---|---|
PublicKeyInfo |
locate(PublicKeyLocator.Criteria criteria)
Locates the public key described by the given criteria, if possible.
|
PublicKeyInfo locate(PublicKeyLocator.Criteria criteria) throws PublicKeyNotFoundException, CertificateValidationException
criteria
- criteria to matchCertificateValidationException
- if a certificate containing the
matching public key fails validation; e.g. expired, revoked,
untrusted, etcPublicKeyNotFoundException
- if a matching public key cannot be
foundCopyright © 2019. All rights reserved.