javax.xml.crypto.enc

Class ToBeEncryptedOctetStream

  • java.lang.Object
    • javax.xml.crypto.enc.ToBeEncryptedOctetStream
  • All Implemented Interfaces:
    ToBeEncrypted


    public class ToBeEncryptedOctetStream
    extends java.lang.Object
    implements ToBeEncrypted
    A representation of ToBeEncrypted containing the octet sequence
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      private java.lang.String encoding 
      private java.io.InputStream inputStream 
      private java.lang.String mimeType 
      private java.lang.String type 
    • Constructor Summary

      Constructors 
      Constructor and Description
      ToBeEncryptedOctetStream(java.io.InputStream inputStream)
      Creates a new ToBeEncryptedOctetStream
      ToBeEncryptedOctetStream(java.io.InputStream inputStream, java.lang.String type, java.lang.String mimeType, java.lang.String encoding)
      Creates a new ToBeEncryptedOctetStream
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getEncoding()
      Returns a URI identifying the transfer encoding of the data that has been encrypted.
      java.io.InputStream getInputStream()
      Returns the input stream of this ToBeEncryptedOctetStream
      java.lang.String getMimeType()
      Returns the mime type of the data that has been encrypted.
      java.lang.String getType()
      Returns a URI identifying the type of the plaintext form of the encrypted content.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • inputStream

        private java.io.InputStream inputStream
      • type

        private java.lang.String type
      • mimeType

        private java.lang.String mimeType
      • encoding

        private java.lang.String encoding
    • Constructor Detail

      • ToBeEncryptedOctetStream

        public ToBeEncryptedOctetStream(java.io.InputStream inputStream)
        Creates a new ToBeEncryptedOctetStream
        Parameters:
        inputStream - the InputStream containing the octet sequence to be encrypted
        Throws:
        java.lang.NullPointerException - if inputStream is null
      • ToBeEncryptedOctetStream

        public ToBeEncryptedOctetStream(java.io.InputStream inputStream,
                                        java.lang.String type,
                                        java.lang.String mimeType,
                                        java.lang.String encoding)
        Creates a new ToBeEncryptedOctetStream
        Parameters:
        type - the type (may be null)
        mimeType - the mime type (may be null)
        encoding - the encoding (may be null)
        Throws:
        java.lang.NullPointerException - if inputStream is null
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
        Returns the input stream of this ToBeEncryptedOctetStream
        Returns:
        the input stream of this ToBeEncryptedOctetStream
      • getType

        public java.lang.String getType()
        Returns a URI identifying the type of the plaintext form of the encrypted content.
        Specified by:
        getType in interface ToBeEncrypted
        Returns:
        the type, or null if not specified
      • getMimeType

        public java.lang.String getMimeType()
        Returns the mime type of the data that has been encrypted.
        Specified by:
        getMimeType in interface ToBeEncrypted
        Returns:
        the mime type, or null if not specified
      • getEncoding

        public java.lang.String getEncoding()
        Returns a URI identifying the transfer encoding of the data that has been encrypted.
        Specified by:
        getEncoding in interface ToBeEncrypted
        Returns:
        the encoding, or null if not specified
XML Security (JSR 105/106), 1.8

Copyright © 2015 IBM Corporation. All Rights Reserved.