Package aQute.bnd.url
Class LocalTrustManager
java.lang.Object
aQute.bnd.url.LocalTrustManager
- All Implemented Interfaces:
TrustManager
,X509TrustManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Set<TrustAnchor>
(package private) static final CertificateFactory
(package private) static final Base64.Decoder
(package private) static final X509Certificate[]
private PKIXParameters
private List<X509Certificate>
(package private) static final CertPathValidator
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkClientTrusted
(X509Certificate[] chain, String authType) void
checkServerTrusted
(X509Certificate[] toBeVerified, String authType)
-
Field Details
-
cf
-
validator
-
empty
-
DECODER
-
anchors
-
trusted
-
parameter
-
verify
private boolean verify
-
-
Constructor Details
-
LocalTrustManager
public LocalTrustManager(boolean verify, List<X509Certificate> trusted) throws InvalidAlgorithmParameterException
-
-
Method Details
-
checkClientTrusted
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException - Specified by:
checkClientTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
checkServerTrusted
public void checkServerTrusted(X509Certificate[] toBeVerified, String authType) throws CertificateException - Specified by:
checkServerTrusted
in interfaceX509TrustManager
- Throws:
CertificateException
-
getAcceptedIssuers
- Specified by:
getAcceptedIssuers
in interfaceX509TrustManager
-