ariba.ui.aribaweb.util
Class AWEncryptionProvider

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWEncryptionProvider

public abstract class AWEncryptionProvider
extends Object

Provides encryption services to the AW package. THe implementation is provided by the AWApplication


Constructor Summary
AWEncryptionProvider()
           
 
Method Summary
abstract  OutputStream getCipherOutputStream(OutputStream cipherStream)
          Output stream wrapper that encrypts data before it is passed on to the wrapped cipherStream
abstract  InputStream getCleartextInputStream(InputStream cipherStream)
          input stream wrapper that returns cleartext given a previously encrypted input stream.
static AWEncryptionProvider getProvider()
           
static void setProvider(AWEncryptionProvider p)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWEncryptionProvider

public AWEncryptionProvider()
Method Detail

getProvider

public static AWEncryptionProvider getProvider()

setProvider

public static void setProvider(AWEncryptionProvider p)

getCleartextInputStream

public abstract InputStream getCleartextInputStream(InputStream cipherStream)
                                             throws IOException
input stream wrapper that returns cleartext given a previously encrypted input stream.

Parameters:
cipherStream - input stream returning encrypted bytes
Returns:
input stream returning cleartext
Throws:
IOException

getCipherOutputStream

public abstract OutputStream getCipherOutputStream(OutputStream cipherStream)
                                            throws IOException
Output stream wrapper that encrypts data before it is passed on to the wrapped cipherStream

Parameters:
cipherStream - output stream which received encrypted data
Returns:
output stream which will convert cleartext data into encrypted data
Throws:
IOException


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.