java.lang.Object | |
↳ | com.microsoft.intune.mam.client.app.MAMCertificatePinningManager |
The MAMCertificatePinningManager has methods to enable certificate pinning for apps, according to the Intune cert pinning configuration received from the MAM Service.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static SSLContext |
getPinningSSLContext(String identity, URL url)
This method is deprecated.
Use
getPinningSSLContextForOID(String, URL) .
| ||||||||||
static SSLContext |
getPinningSSLContextForOID(String oid, URL url)
Get a SSLContext that can be used with a custom SSLSocketFactory implementation.
| ||||||||||
static SSLSocketFactory |
getPinningSocketFactory(String identity, URL url)
This method is deprecated.
Use
getPinningSocketFactoryForOID(String, URL) .
| ||||||||||
static SSLSocketFactory |
getPinningSocketFactoryForOID(String oid, URL url)
Get a SSLSocketFactory used to configure HTTPS connection objects.
| ||||||||||
static void |
validatePins(X509Certificate[] chain, String identity, URL url)
This method is deprecated.
Use
validatePinsForOID(X509Certificate[], String, URL) .
| ||||||||||
static void |
validatePinsForOID(X509Certificate[] chain, String oid, URL url)
Validate the given chain using the pinning configuration for the given identity and URL.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This method is deprecated.
Use getPinningSSLContextForOID(String, URL)
.
Get a SSLContext that can be used with a custom SSLSocketFactory implementation.
identity | UPN of the identity of the account using the connection. Pass null to use the current thread identity. |
---|---|
url | The URL to be connected, used to choose the correct pins. |
GeneralSecurityException | Thrown on failure to create the SSLContext. See Android docs for SSLContext.getInstance() and SSLContext.init() for more details. |
---|
Get a SSLContext that can be used with a custom SSLSocketFactory implementation.
oid | AAD OID of the identity of the account using the connection. Pass null to use the current thread identity. Pass an empty string for any account that doesn't have an OID (e.g. personal accounts). |
---|---|
url | The URL to be connected, used to choose the correct pins. |
GeneralSecurityException | Thrown on failure to create the SSLContext. See Android docs for SSLContext.getInstance() and SSLContext.init() for more details. |
---|
This method is deprecated.
Use getPinningSocketFactoryForOID(String, URL)
.
Get a SSLSocketFactory used to configure HTTPS connection objects.
identity | UPN of the identity of the account using the connection. Pass null to use the current thread identity. |
---|---|
url | The URL to be connected, used to choose the correct pins. |
GeneralSecurityException | Thrown on failure to create the underlying SSLContext. See Android docs for SSLContext.getInstance() and SSLContext.init() for more details. |
---|
Get a SSLSocketFactory used to configure HTTPS connection objects.
oid | AAD OID of the identity of the account using the connection. Pass null to use the current thread identity. Pass an empty string for any account that doesn't have an OID (e.g. personal accounts). |
---|---|
url | The URL to be connected, used to choose the correct pins. |
GeneralSecurityException | Thrown on failure to create the underlying SSLContext. See Android docs for SSLContext.getInstance() and SSLContext.init() for more details. |
---|
This method is deprecated.
Use validatePinsForOID(X509Certificate[], String, URL)
.
Validate the given chain using the pinning configuration for the given identity and URL.
chain | The chain to validate. Note that the network stack validations should already have been performed. This method only does the additional pinning validation. |
---|---|
identity | UPN of the identity of the account using the connection. Pass null to use the current thread identity. |
url | The URL to be connected, used to choose the correct pins. |
CertificateException | thrown if chain is not valid. |
---|
Validate the given chain using the pinning configuration for the given identity and URL.
chain | The chain to validate. Note that the network stack validations should already have been performed. This method only does the additional pinning validation. |
---|---|
oid | AAD OID of the identity of the account using the connection. Pass null to use the current thread identity. Pass an empty string for any account that doesn't have an OID (e.g. personal accounts). |
url | The URL to be connected, used to choose the correct pins. |
CertificateException | thrown if chain is not valid. |
---|