com.rsa.certj.provider.pki

Class PKICommonImplementation

java.lang.Object
  |
  +--com.rsa.certj.ProviderImplementation
        |
        +--com.rsa.certj.provider.TransportImplementation
              |
              +--com.rsa.certj.provider.pki.PKICommonImplementation

public abstract class PKICommonImplementation
extends com.rsa.certj.provider.TransportImplementation

This class implements common behaviors among all the PKI providers that RSA supports, such as URL encoding, and HTTP transportation.

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


Fields inherited from class com.rsa.certj.provider.TransportImplementation
MIME_CONTENT_LENGTH_PREFIX, MIME_CONTENT_TYPE_PREFIX
 

Method Summary

static Hashtable

loadProperties(InputStream stream)

 

 Properties

urlDecodeRegInfo(String string)

Takes encoded string and returns a Properties object that contains decoded registration information.

 String

urlEncodeRegInfo(Properties regInfo)

Takes a Properties object and returns a URL-encoded byte array, sorted by the name entry's value.

 
Methods inherited from class com.rsa.certj.provider.TransportImplementation
getName, http, sendAndReceiveHttp, unregister
 
Methods inherited from class com.rsa.certj.ProviderImplementation
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

urlEncodeRegInfo

public String urlEncodeRegInfo(Properties regInfo)
Takes a Properties object and returns a URL-encoded byte array, sorted by the name entry's value.

Parameters

         regInfo  

A Properties object that contains registration information to be encoded.

Returns

A String that contains URL-encoded registration information.

urlDecodeRegInfo

public Properties urlDecodeRegInfo(String string)
                            throws PKIException
Takes encoded string and returns a Properties object that contains decoded registration information.

Parameters

         string  

A String that contains URL-encoded registration information.

Returns

A Properties object indicating decoded registration information.

Throws

PKIException - If the decoding process fails.

loadProperties

public static Hashtable loadProperties(InputStream stream)
                                throws InvalidParameterException


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