|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security.pkcsutil.PKCSDerObject
Abstract class inherited by other PKCS objects.
Field Summary | |
protected String |
provider
|
Constructor Summary | |
PKCSDerObject()
Create a PKCSDerObject subclass with attributes to be filled in at a later stage. |
|
PKCSDerObject(byte[] der)
Create a PKCSDerObject subclass with a DER-encoded byte array. |
|
PKCSDerObject(byte[] der,
String provider)
Create a PKCSDerObject subclass with a DER-encoded byte array. |
|
PKCSDerObject(String provider)
Create a PKCSDerObject subclass with attributes to be filled in at a later stage. |
|
PKCSDerObject(String filename,
boolean base64)
Create a PKCSDerObject subclass with the filename of the DER-encoded or BASE64-encoded object. |
|
PKCSDerObject(String filename,
boolean base64,
String provider)
Create a PKCSDerObject subclass with the filename of the DER-encoded or BASE64-encoded object. |
Method Summary | |
protected void |
decode(byte[] der)
Decode the attributes of the PKCSDerObject subclass from a DER byte array. |
protected abstract void |
decode(com.ibm.security.pkcsutil.DerValue encoding)
Decode the attributes of the PKCSDerObject subclass from a DerValue. |
byte[] |
encode()
Return an encoded DER byte array. |
abstract void |
encode(OutputStream os)
Return an encoded DER byte array on an OutputStream. |
abstract boolean |
equals(Object obj)
Determines if this object is equivalent to the input object. |
ObjectIdentifier |
getObjectIdentifier()
Return the ObjectIdentifier for the object, if specified. |
int |
hashCode()
Returns a hashcode value for this object. |
protected void |
read(String filename)
Read the byte array of a DER-encode object from the input file and decode the contents into the current object. |
protected void |
readBASE64(String filename)
Read the BASE64 encoding of a DER-encode object from the input file and decode the contents into the current object. |
abstract String |
toString()
Returns a string representation of this object. |
protected void |
write(String filename)
DER-encode the object and write the encoded bytes to the output file. |
void |
write(String filename,
boolean isBase64)
DER-encode the object and write the encoded bytes to the output file. |
protected void |
writeBASE64(String filename)
DER-encode the object and write the encoded bytes to the output file in BASE64 format. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected String provider
Constructor Detail |
public PKCSDerObject()
public PKCSDerObject(String provider)
public PKCSDerObject(byte[] der) throws IOException
public PKCSDerObject(byte[] der, String provider) throws IOException
public PKCSDerObject(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic PKCSDerObject(String filename, boolean base64, String provider) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedprovider
- the provider to be usedMethod Detail |
public byte[] encode() throws IOException
public int hashCode()
public ObjectIdentifier getObjectIdentifier()
public void write(String filename, boolean isBase64) throws IOException
filename
- the file to write the DER-encoded object to.isBase64
- true if the DER-encoded object should be written in
BASE64 format, false otherwise.protected void decode(byte[] der) throws IOException
protected void read(String filename) throws IOException
filename
- the file to read an object's DER encoding from.protected void readBASE64(String filename) throws IOException
filename
- the BASE64 file to read an object's DER encoding from.protected void write(String filename) throws IOException
filename
- the file to write the DER-encoded object to.protected void writeBASE64(String filename) throws IOException
filename
- the file to write the BASE64 DER-encoded object to.protected abstract void decode(com.ibm.security.pkcsutil.DerValue encoding) throws IOException
public abstract void encode(OutputStream os) throws IOException
public abstract String toString()
public abstract boolean equals(Object obj)
other
- the object to compare this one to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |