SecurityProvider Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. provisioning. security. SecurityProvider
- com.
public class SecurityProvider
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract String |
getRegistrationId()
Unique id required for registration |
SSLContext |
getSSLContext()
Retrieves the SSL context loaded with trusted certs. This default implementation loads the trusted certificates from your device's trusted root certification authorities certificate store. Implementations of 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. |
Method Details
getRegistrationId
public abstract String getRegistrationId()
Unique id required for registration
Returns:
Throws:
getSSLContext
public SSLContext getSSLContext()
Retrieves the SSL context loaded with trusted certs. This default implementation loads the trusted certificates from your device's trusted root certification authorities certificate store. Implementations of 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.
Returns:
Throws:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for