Class UserPFXCertificate

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class UserPFXCertificate
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Entity that encapsulates all information required for a user's PFX certificates.”
    • Constructor Detail

      • UserPFXCertificate

        protected UserPFXCertificate()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderUserPFXCertificate

        public static UserPFXCertificate.Builder builderUserPFXCertificate()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getCreatedDateTime

        public Optional<OffsetDateTime> getCreatedDateTime()
        “Date/time when this PFX certificate was imported.”
        Returns:
        property createdDateTime
      • withCreatedDateTime

        public UserPFXCertificate withCreatedDateTime​(OffsetDateTime createdDateTime)
        Returns an immutable copy of this with just the createdDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Date/time when this PFX certificate was imported.”

        Parameters:
        createdDateTime - new value of createdDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the createdDateTime field changed
      • getEncryptedPfxBlob

        public Optional<byte[]> getEncryptedPfxBlob()
        “Encrypted PFX blob.”
        Returns:
        property encryptedPfxBlob
      • withEncryptedPfxBlob

        public UserPFXCertificate withEncryptedPfxBlob​(byte[] encryptedPfxBlob)
        Returns an immutable copy of this with just the encryptedPfxBlob field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Encrypted PFX blob.”

        Parameters:
        encryptedPfxBlob - new value of encryptedPfxBlob field (as defined in service metadata)
        Returns:
        immutable copy of this with just the encryptedPfxBlob field changed
      • getEncryptedPfxPassword

        public Optional<String> getEncryptedPfxPassword()
        “Encrypted PFX password.”
        Returns:
        property encryptedPfxPassword
      • withEncryptedPfxPassword

        public UserPFXCertificate withEncryptedPfxPassword​(String encryptedPfxPassword)
        Returns an immutable copy of this with just the encryptedPfxPassword field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Encrypted PFX password.”

        Parameters:
        encryptedPfxPassword - new value of encryptedPfxPassword field (as defined in service metadata)
        Returns:
        immutable copy of this with just the encryptedPfxPassword field changed
      • getExpirationDateTime

        public Optional<OffsetDateTime> getExpirationDateTime()
        “Certificate's validity expiration date/time.”
        Returns:
        property expirationDateTime
      • withExpirationDateTime

        public UserPFXCertificate withExpirationDateTime​(OffsetDateTime expirationDateTime)
        Returns an immutable copy of this with just the expirationDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Certificate's validity expiration date/time.”

        Parameters:
        expirationDateTime - new value of expirationDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the expirationDateTime field changed
      • getIntendedPurpose

        public Optional<UserPfxIntendedPurpose> getIntendedPurpose()
        “Certificate's intended purpose from the point-of-view of deployment.”
        Returns:
        property intendedPurpose
      • withIntendedPurpose

        public UserPFXCertificate withIntendedPurpose​(UserPfxIntendedPurpose intendedPurpose)
        Returns an immutable copy of this with just the intendedPurpose field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Certificate's intended purpose from the point-of-view of deployment.”

        Parameters:
        intendedPurpose - new value of intendedPurpose field (as defined in service metadata)
        Returns:
        immutable copy of this with just the intendedPurpose field changed
      • getKeyName

        public Optional<String> getKeyName()
        “Name of the key (within the provider) used to encrypt the blob.”
        Returns:
        property keyName
      • withKeyName

        public UserPFXCertificate withKeyName​(String keyName)
        Returns an immutable copy of this with just the keyName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Name of the key (within the provider) used to encrypt the blob.”

        Parameters:
        keyName - new value of keyName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the keyName field changed
      • getLastModifiedDateTime

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “Date/time when this PFX certificate was last modified.”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public UserPFXCertificate withLastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        Returns an immutable copy of this with just the lastModifiedDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Date/time when this PFX certificate was last modified.”

        Parameters:
        lastModifiedDateTime - new value of lastModifiedDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastModifiedDateTime field changed
      • getPaddingScheme

        public Optional<UserPfxPaddingScheme> getPaddingScheme()
        “Padding scheme used by the provider during encryption/decryption.”
        Returns:
        property paddingScheme
      • withPaddingScheme

        public UserPFXCertificate withPaddingScheme​(UserPfxPaddingScheme paddingScheme)
        Returns an immutable copy of this with just the paddingScheme field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Padding scheme used by the provider during encryption/decryption.”

        Parameters:
        paddingScheme - new value of paddingScheme field (as defined in service metadata)
        Returns:
        immutable copy of this with just the paddingScheme field changed
      • getProviderName

        public Optional<String> getProviderName()
        “Crypto provider used to encrypt this blob.”
        Returns:
        property providerName
      • withProviderName

        public UserPFXCertificate withProviderName​(String providerName)
        Returns an immutable copy of this with just the providerName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Crypto provider used to encrypt this blob.”

        Parameters:
        providerName - new value of providerName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the providerName field changed
      • getStartDateTime

        public Optional<OffsetDateTime> getStartDateTime()
        “Certificate's validity start date/time.”
        Returns:
        property startDateTime
      • withStartDateTime

        public UserPFXCertificate withStartDateTime​(OffsetDateTime startDateTime)
        Returns an immutable copy of this with just the startDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Certificate's validity start date/time.”

        Parameters:
        startDateTime - new value of startDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the startDateTime field changed
      • getThumbprint

        public Optional<String> getThumbprint()
        “SHA-1 thumbprint of the PFX certificate.”
        Returns:
        property thumbprint
      • withThumbprint

        public UserPFXCertificate withThumbprint​(String thumbprint)
        Returns an immutable copy of this with just the thumbprint field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “SHA-1 thumbprint of the PFX certificate.”

        Parameters:
        thumbprint - new value of thumbprint field (as defined in service metadata)
        Returns:
        immutable copy of this with just the thumbprint field changed
      • getUserPrincipalName

        public Optional<String> getUserPrincipalName()
        “User Principal Name of the PFX certificate.”
        Returns:
        property userPrincipalName
      • withUserPrincipalName

        public UserPFXCertificate withUserPrincipalName​(String userPrincipalName)
        Returns an immutable copy of this with just the userPrincipalName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “User Principal Name of the PFX certificate.”

        Parameters:
        userPrincipalName - new value of userPrincipalName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the userPrincipalName field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public UserPFXCertificate patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public UserPFXCertificate put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected