javax.xml.crypto.enc

Class ToBeEncryptedOctetStream

  1. java.lang.Object
  2. extended byjavax.xml.crypto.enc.ToBeEncryptedOctetStream
All implemented interfaces:
ToBeEncrypted

  1. public class ToBeEncryptedOctetStream
  2. extends java.lang.Object
  3. implements ToBeEncrypted
A representation of ToBeEncrypted containing the octet sequence

Constructor Summary

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

Modifier and Type Method and Description
  1. java.lang.String
getEncoding()
Returns a URI identifying the transfer encoding of the data that has been encrypted.
  1. java.io.InputStream
getInputStream()
Returns the input stream of this ToBeEncryptedOctetStream
  1. java.lang.String
getMimeType()
Returns the mime type of the data that has been encrypted.
  1. 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

Constructor Detail

ToBeEncryptedOctetStream

  1. 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

  1. public ToBeEncryptedOctetStream( java.io.InputStream inputStream,
  2. java.lang.String type,
  3. java.lang.String mimeType,
  4. 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

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

getType

  1. 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

  1. 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

  1. 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