|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security.pkcsutil.PKCSDerObject | +--com.ibm.security.pkcsutil.PublicKeyAndChallenge
Implements PublicKeyAndChallenge
PublicKeyAndChallenge objects are immutable; they cannot be changed once created.
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
PublicKeyAndChallenge(byte[] der)
Create a PublicKeyAndChallenge object with a DER byte array. |
|
PublicKeyAndChallenge(byte[] der,
String provider)
Create a PublicKeyAndChallenge object with a DER byte array. |
|
PublicKeyAndChallenge(PublicKey publicKey,
String challenge)
Create a PublicKeyAndChallenge object. |
|
PublicKeyAndChallenge(PublicKey publicKey,
String challenge,
String provider)
Create a PublicKeyAndChallenge object. |
Method Summary | |
Object |
clone()
Creates a clone of this PublicKeyAndChallenge object. |
protected void |
decode(com.ibm.security.pkcsutil.DerValue encoding)
Initializes a PublicKeyAndChallenge object from a DerValue. |
void |
encode(OutputStream os)
Encodes this PublicKeyAndChallenge object to an OutputStream. |
boolean |
equals(Object other)
Determines if this PublicKeyAndChallenge object is equivalent to the input object. |
String |
getChallenge()
Returns the challenge String. |
PublicKey |
getSubjectPublicKeyInfo()
Returns a copy of the subject public key info. |
String |
toString()
Returns a string representation of this PublicKeyAndChallenge object. |
Methods inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
decode,
encode,
getObjectIdentifier,
hashCode,
read,
readBASE64,
write,
write,
writeBASE64 |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public PublicKeyAndChallenge(byte[] der) throws IOException
der
- a byte array containing the DER encoding of a PublicKeyAndChallenge
object.public PublicKeyAndChallenge(byte[] der, String provider) throws IOException
der
- a byte array containing the DER encoding of a PublicKeyAndChallenge
object.provider
- the provider to be used.public PublicKeyAndChallenge(PublicKey publicKey, String challenge) throws InvalidKeyException
publicKey
- the public key in X.509 formatchallenge
- the challenge stringpublic PublicKeyAndChallenge(PublicKey publicKey, String challenge, String provider) throws InvalidKeyException
publicKey
- the public key in X.509 formatchallenge
- the challenge stringprovider
- the provider to be usedMethod Detail |
public PublicKey getSubjectPublicKeyInfo() throws InvalidKeyException, IOException
public String getChallenge()
public void encode(OutputStream os) throws IOException
os
- the OutputStream to write the encoded data to.protected void decode(com.ibm.security.pkcsutil.DerValue encoding) throws IOException
encoding
- a DER-encoded PublicKeyAndChallenge object.public boolean equals(Object other)
other
- the PublicKeyAndChallenge object to compare this one to.public String toString()
public Object clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |