java.lang.Object
com.hedera.hashgraph.sdk.HederaTrustManager
- All Implemented Interfaces:
TrustManager,X509TrustManager
Internal class used by node.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHederaTrustManager(com.google.protobuf.ByteString certHash, boolean verifyCertificate) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckClientTrusted(X509Certificate[] chain, String authType) voidcheckServerTrusted(X509Certificate[] chain, String authType)
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
HederaTrustManager
HederaTrustManager(@Nullable com.google.protobuf.ByteString certHash, boolean verifyCertificate) Constructor.- Parameters:
certHash- a byte string of the certificate hashverifyCertificate- should be verified
-
-
Method Details
-
checkClientTrusted
- Specified by:
checkClientTrustedin interfaceX509TrustManager
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkServerTrustedin interfaceX509TrustManager- Throws:
CertificateException
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuersin interfaceX509TrustManager
-