Skip navigation links
oracle.security.xmlsec.enc
Class DecryptInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
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 $
Fields inherited from class java.io.FilterInputStream |
in |
Constructor Summary |
DecryptInputStream(java.io.InputStream in, javax.crypto.Cipher c, int nonceLength)
|
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 |
DecryptInputStream
public DecryptInputStream(java.io.InputStream in,
javax.crypto.Cipher c,
int nonceLength)
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
Copyright © 2005, 2011 , Oracle. All rights reserved.