Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10680-05


oracle.security.xmlsec.enc
Class DecryptInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by oracle.security.xmlsec.enc.DecryptInputStream

All Implemented Interfaces:
java.io.Closeable

public class DecryptInputStream
extends java.io.FilterInputStream

Similar to CipherInputStream, except it does two extra things a) skips over the nonce in the beginning b) does XML enc unpadding .
Note: the cipher object must be set up for NoPadding, or for ISO10126Padding
Note you must have already read the IV from the InputStream and set up the Cipher object with that IV before calling the DecryptInputStream constructor

Since:
release specific (what release of product did this appear in)
Version:
$Header: ldap/java/src/oracle/security/xmlsec/enc/DecryptInputStream.java /main/1 2008/12/17 15:42:25 pdatta Exp $

Field Summary

 

Fields inherited from class java.io.FilterInputStream
in

 

Constructor Summary
DecryptInputStream(java.io.InputStream in, javax.crypto.Cipher c, int nonceLength)
           

 

Method Summary
 boolean markSupported()
           
 int read()
           
 int read(byte[] b, int off, int len)
           

 

Methods inherited from class java.io.FilterInputStream
available, close, mark, read, reset, skip

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

DecryptInputStream

public DecryptInputStream(java.io.InputStream in,
                          javax.crypto.Cipher c,
                          int nonceLength)

Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.FilterInputStream
Throws:
java.io.IOException

markSupported

public boolean markSupported()
Overrides:
markSupported in class java.io.FilterInputStream

Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10680-05


Copyright © 2005, 2013 , Oracle. All rights reserved.