Interface EncryptableSubscription


public interface EncryptableSubscription
EncryptableSubscription interface
  • Method Details

    • setEncryptionCertificate

      void setEncryptionCertificate(@Nullable String certificate)
      Sets the encryption certificate
      Parameters:
      certificate - Base-64 encoded certificate to be used by Microsoft Graph to encrypt resource data
    • getEncryptionCertificate

      @Nullable String 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 subscription
      certificate - X.509 Certificate
      Throws:
      CertificateEncodingException - if the certificate cannot be encoded