public class JcaPublicKeyLocator extends Object implements PublicKeyLocator
PublicKeyLocator
implemented using the JCA.Modifier and Type | Class and Description |
---|---|
static class |
JcaPublicKeyLocator.Builder |
PublicKeyLocator.Criteria, PublicKeyLocator.StrategyType, PublicKeyLocator.Thumbprint
Modifier and Type | Method and Description |
---|---|
static JcaPublicKeyLocator.Builder |
builder()
Gets a builder that builds a new locator.
|
PublicKeyInfo |
locate(PublicKeyLocator.Criteria criteria)
Locates the public key described by the given criteria, if possible.
|
public static JcaPublicKeyLocator.Builder builder()
public PublicKeyInfo locate(PublicKeyLocator.Criteria criteria) throws PublicKeyNotFoundException, CertificateValidationException
PublicKeyLocator
locate
in interface PublicKeyLocator
criteria
- criteria to matchPublicKeyNotFoundException
- if a matching public key cannot be
foundCertificateValidationException
- if a certificate containing the
matching public key fails validation; e.g. expired, revoked,
untrusted, etcCopyright © 2019. All rights reserved.