Package com.microsoft.graph.core.models
Interface EncryptableSubscription
public interface EncryptableSubscription
EncryptableSubscription interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPublicEncryptionCertificate(EncryptableSubscription subscription, X509Certificate certificate) Converts an X.509 Certificate object to Base-64 string and adds to the encryptableSubscription providedReturns the encryption certificatevoidsetEncryptionCertificate(String certificate) Sets the encryption certificate
-
Method Details
-
setEncryptionCertificate
Sets the encryption certificate- Parameters:
certificate- Base-64 encoded certificate to be used by Microsoft Graph to encrypt resource data
-
getEncryptionCertificate
Returns the encryption certificate- Returns:
- encryption certificate
-
addPublicEncryptionCertificate
static void addPublicEncryptionCertificate(@Nonnull EncryptableSubscription subscription, @Nonnull X509Certificate certificate) throws CertificateEncodingException Converts an X.509 Certificate object to Base-64 string and adds to the encryptableSubscription provided- Parameters:
subscription- encryptable subscriptioncertificate- X.509 Certificate- Throws:
CertificateEncodingException- if the certificate cannot be encoded
-