Package net.gini.android.authorization
Class PubKeyManager
- java.lang.Object
-
- net.gini.android.authorization.PubKeyManager
-
- All Implemented Interfaces:
javax.net.ssl.TrustManager
,javax.net.ssl.X509TrustManager
public final class PubKeyManager extends java.lang.Object implements javax.net.ssl.X509TrustManager
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PubKeyManager.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PubKeyManager.Builder
builder(android.content.Context context)
void
checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates, java.lang.String s)
void
checkServerTrusted(java.security.cert.X509Certificate[] remoteX509Certificates, java.lang.String authType)
java.security.cert.X509Certificate[]
getAcceptedIssuers()
-
-
-
Method Detail
-
builder
public static PubKeyManager.Builder builder(@NonNull android.content.Context context)
-
checkServerTrusted
public void checkServerTrusted(java.security.cert.X509Certificate[] remoteX509Certificates, java.lang.String authType) throws java.security.cert.CertificateException
- Specified by:
checkServerTrusted
in interfacejavax.net.ssl.X509TrustManager
- Throws:
java.security.cert.CertificateException
-
checkClientTrusted
public void checkClientTrusted(java.security.cert.X509Certificate[] x509Certificates, java.lang.String s) throws java.security.cert.CertificateException
- Specified by:
checkClientTrusted
in interfacejavax.net.ssl.X509TrustManager
- Throws:
java.security.cert.CertificateException
-
getAcceptedIssuers
public java.security.cert.X509Certificate[] getAcceptedIssuers()
- Specified by:
getAcceptedIssuers
in interfacejavax.net.ssl.X509TrustManager
-
-