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 ofToBeEncryptedcontaining the octet sequence
-
-
Field Summary
Fields Modifier and Type Field and Description private java.lang.Stringencodingprivate java.io.InputStreaminputStreamprivate java.lang.StringmimeTypeprivate java.lang.Stringtype
-
Constructor Summary
Constructors Constructor and Description ToBeEncryptedOctetStream(java.io.InputStream inputStream)Creates a new ToBeEncryptedOctetStreamToBeEncryptedOctetStream(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.StringgetEncoding()Returns a URI identifying the transfer encoding of the data that has been encrypted.java.io.InputStreamgetInputStream()Returns the input stream of this ToBeEncryptedOctetStreamjava.lang.StringgetMimeType()Returns the mime type of the data that has been encrypted.java.lang.StringgetType()Returns a URI identifying the type of the plaintext form of the encrypted content.
-
-
-
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- theInputStreamcontaining the octet sequence to be encrypted- Throws:
java.lang.NullPointerException- ifinputStreamis 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 benull)mimeType- the mime type (may benull)encoding- the encoding (may benull)- Throws:
java.lang.NullPointerException- ifinputStreamis 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:
getTypein interfaceToBeEncrypted- Returns:
- the type, or
nullif not specified
-
getMimeType
public java.lang.String getMimeType()
Returns the mime type of the data that has been encrypted.- Specified by:
getMimeTypein interfaceToBeEncrypted- Returns:
- the mime type, or
nullif not specified
-
getEncoding
public java.lang.String getEncoding()
Returns a URI identifying the transfer encoding of the data that has been encrypted.- Specified by:
getEncodingin interfaceToBeEncrypted- Returns:
- the encoding, or
nullif not specified
-
-