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()
SecurityProvider
getRegistrationId
in class SecurityProvider
public SSLContext getSSLContext() throws SecurityProviderException
SecurityProvider
SecurityProviderX509
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 SecurityProvider
SecurityProviderException
- If ssl context could not be generated for any of the reason.Copyright © 2022. All rights reserved.