© 2001 BEA Systems, Inc.

com.beasys.commerce.ebusiness.security.pipeline
Class EncryptCreditCardPC

java.lang.Object
  |
  +--com.beasys.commerce.foundation.pipeline.CommercePipelineComponent
        |
        +--com.beasys.commerce.ebusiness.security.pipeline.SecurityPC
              |
              +--com.beasys.commerce.ebusiness.security.pipeline.EncryptCreditCardPC
All Implemented Interfaces:
PipelineComponent

public class EncryptCreditCardPC
extends SecurityPC

This PipelineComponent extracts and removes a credit card key from the PipelineSession, retrieves a customer credit card with the supplied key, encrypts the credit card number, and then adds the modified credit card back to the PipelineSession customer value attribute. If a credit card is not supplied, the PipelineSession simply returns.


Constructor Summary
EncryptCreditCardPC()
           
 
Method Summary
 PipelineSession process(PipelineSession pipelineSession)
          The process method which processes the PipelineSession and returns the processed PipelineSession.
 
Methods inherited from class com.beasys.commerce.ebusiness.security.pipeline.SecurityPC
getEncryptor
 
Methods inherited from class com.beasys.commerce.foundation.pipeline.CommercePipelineComponent
getConnection, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptCreditCardPC

public EncryptCreditCardPC()
Method Detail

process

public PipelineSession process(PipelineSession pipelineSession)
                        throws PipelineFatalException,
                               PipelineNonFatalException,
                               java.rmi.RemoteException
Description copied from interface: PipelineComponent
The process method which processes the PipelineSession and returns the processed PipelineSession.

Note: This method is not allowed to return null. Returning null will cause the pipeline in which this component is participating to terminate abnormally.

Following copied from interface: com.beasys.commerce.foundation.pipeline.PipelineComponent
Parameters:
PipelineSession - object
Returns:
PipelineSession the processed PipelineSession object
Throws:
PipelineFatalException - indicates that the component failed to execute and the pipeline has to be terminated.
PipelineNonFatalException - indicates that the component failed to execute. But the failure is not critical to the pipeline as a whole and hence the pipeline execution has to be continued.
RemoteException - on Remote error.

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved