@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=false, mayInvoke=true) public final class ExpirationCheckTrustManager extends Object implements X509TrustManager
Constructor and Description |
---|
ExpirationCheckTrustManager(X509TrustManager trustManager)
Creates a new instance of this trust manager that will wrap the provided
trust manager.
|
Modifier and Type | Method and Description |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType)
Determines whether to trust the peer based on the provided certificate
chain.
|
void |
checkServerTrusted(X509Certificate[] chain,
String authType)
Determines whether to trust the peer based on the provided certificate
chain.
|
X509Certificate[] |
getAcceptedIssuers()
Retrieves the set of CA certificates which are trusted for authenticating
peers.
|
public ExpirationCheckTrustManager(X509TrustManager trustManager)
trustManager
- The trust manager to be wrapped by this trust
manager.public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkClientTrusted
in interface X509TrustManager
chain
- The peer certificate chain.authType
- The authentication type based on the client certificate.CertificateException
- If the client certificate chain is not
trusted.public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted
in interface X509TrustManager
chain
- The peer certificate chain.authType
- The key exchange algorithm used.CertificateException
- If the server certificate chain is not
trusted.public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.