public abstract class SecurityProviderX509 extends SecurityProvider
| Constructor and Description |
|---|
SecurityProviderX509() |
| Modifier and Type | Method and Description |
|---|---|
abstract X509Certificate |
getClientCertificate() |
abstract String |
getClientCertificateCommonName() |
abstract Key |
getClientPrivateKey() |
abstract Collection<X509Certificate> |
getIntermediateCertificatesChain() |
String |
getRegistrationId()
Unique id required for registration
|
SSLContext |
getSSLContext()
Retrieves the SSL context loaded with trusted certs.
|
public abstract String getClientCertificateCommonName()
public abstract X509Certificate getClientCertificate()
public abstract Key getClientPrivateKey()
public abstract Collection<X509Certificate> getIntermediateCertificatesChain()
public String getRegistrationId()
SecurityProvidergetRegistrationId in class SecurityProviderpublic SSLContext getSSLContext() throws SecurityProviderException
SecurityProviderSecurityProviderX509
must override this function so that it returns an SSLContext instance with the required private key and public certificates
loaded into it as well as the default trusted certificates saved in your device's trusted root certification authorities certificate store.getSSLContext in class SecurityProviderSecurityProviderException - If ssl context could not be generated for any of the reason.Copyright © 2022. All rights reserved.