com.rsa.certj.spi.pki

Class PKIResult

java.lang.Object
  |
  +--com.rsa.certj.spi.pki.PKIResult

public final class PKIResult
extends Object

This class captures information returned from a PKI request message that has been sent over HTTP. The sendMessage SPI method in the PKIInterface class returns a PKIResult object. The information includes the status of the transaction, whether it succeeded or failed, and the actual message received.

Copyright © RSA Security Inc., 1999-2001. All rights reserved.


Constructor Summary

PKIResult(PKIStatusInfo statusInfo)

Constructs a PKIResult object for a transaction when no response message is received.

PKIResult(PKIStatusInfo statusInfo, byte[] encodedResponse)

Constructs a PKIResult object for a transaction when a response message is received.

 

Method Summary

 byte[]

getEncodedResponse()

Returns an encoded response message that was received.

 PKIStatusInfo

getStatusInfo()

Returns a PKIStatusInfo object that contains the status of a PKI transaction.

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

Constructor Detail

PKIResult

public PKIResult(PKIStatusInfo statusInfo)
Constructs a PKIResult object for a transaction when no response message is received. The status of the transaction result is provided in statusInfo.

Parameters

         statusInfo  

A PKIStatusInfo object indicating the status of a PKI transaction.


PKIResult

public PKIResult(PKIStatusInfo statusInfo,
                 byte[] encodedResponse)
Constructs a PKIResult object for a transaction when a response message is received. The status of the transaction result is contained in statusInfo and the actual response message received is provided in encodedResponse.

Parameters

         statusInfo  

A PKIStatusInfo indicating the status of a PKI transaction.

         encodedResponse  

A byte array that contains the received message.

Method Detail

getStatusInfo

public PKIStatusInfo getStatusInfo()
Returns a PKIStatusInfo object that contains the status of a PKI transaction.

Returns

A PKIStatusInfo object indicating the status of a PKI transaction.

getEncodedResponse

public byte[] getEncodedResponse()
Returns an encoded response message that was received. If a transaction error has occured and no response message was received, it returns null.

Returns

A byte array that contains the encoded message received.


RSA BSAFE ® Cert-J 2.1.1 001-047007-211-001-000