Class KeyTransport


  • public class KeyTransport
    extends Object
    Definition: Encryption key using previously distributed asymmetric key -- Reference: RFC 3852: Cryptographic Message Syntax (CMS) -- Usage: This data structure contains: the version of the data structure (v0) the recipient identifier the key encryption algorithm the encrypted key

    Java class for KeyTransport complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="KeyTransport">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="RecipientIdentifier" type="{}RecipientIdentifier"/>
             <element name="KeyEncryptionAlgorithm" type="{}AlgorithmIdentifier"/>
           </sequence>
           <attribute name="Version" type="{}VersionType" default="v0" />
           <attribute name="EncryptedKey" use="required" type="{}EncryptedKey" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • recipientIdentifier

        protected RecipientIdentifier recipientIdentifier
        The Recipient identifier.
      • keyEncryptionAlgorithm

        protected AlgorithmIdentifier keyEncryptionAlgorithm
        The Key encryption algorithm.
      • encryptedKey

        protected byte[] encryptedKey
        The Encrypted key.
    • Constructor Detail

      • KeyTransport

        public KeyTransport()
    • Method Detail

      • setRecipientIdentifier

        public void setRecipientIdentifier​(RecipientIdentifier value)
        Sets the value of the recipientIdentifier property.
        Parameters:
        value - allowed object is RecipientIdentifier
      • setKeyEncryptionAlgorithm

        public void setKeyEncryptionAlgorithm​(AlgorithmIdentifier value)
        Sets the value of the keyEncryptionAlgorithm property.
        Parameters:
        value - allowed object is AlgorithmIdentifier
      • getVersion

        public VersionType getVersion()
        Gets the value of the version property.
        Returns:
        possible object is VersionType
      • setVersion

        public void setVersion​(VersionType value)
        Sets the value of the version property.
        Parameters:
        value - allowed object is VersionType
      • getEncryptedKey

        public byte[] getEncryptedKey()
        Gets the value of the encryptedKey property.
        Returns:
        possible object is byte[]
      • setEncryptedKey

        public void setEncryptedKey​(byte[] value)
        Sets the value of the encryptedKey property.
        Parameters:
        value - allowed object is byte[]