|
|||||||||
| 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.SignedPublicKeyAndChallenge
Implements SignedPublicKeyAndChallenge
SignedPublicKeyAndChallenge objects are immutable; they cannot be changed once created.
| Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
| Constructor Summary | |
SignedPublicKeyAndChallenge(byte[] der)
Create a SignedPublicKeyAndChallenge object with a DER byte array. |
|
SignedPublicKeyAndChallenge(byte[] der,
String provider)
Create a SignedPublicKeyAndChallenge object with a DER byte array. |
|
SignedPublicKeyAndChallenge(PublicKeyAndChallenge publicKeyAndChallenge,
String signatureAlgorithm,
PrivateKey privateKey)
Create a SignedPublicKeyAndChallenge object from a PublicKeyAndChallenge and a privateKey. |
|
SignedPublicKeyAndChallenge(PublicKeyAndChallenge publicKeyAndChallenge,
String signatureAlgorithm,
PrivateKey privateKey,
String provider)
Create a SignedPublicKeyAndChallenge object from a PublicKeyAndChallenge and a privateKey. |
|
| Method Summary | |
Object |
clone()
Creates a clone of this SignedPublicKeyAndChallenge object. |
protected void |
decode(com.ibm.security.pkcsutil.DerValue encoding)
Initializes a SignedPublicKeyAndChallenge object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object other)
Determines if this SignedPublicKeyAndChallenge object is equivalent to the input object. |
PublicKeyAndChallenge |
getPublicKeyAndChallenge()
Returns the PublicKeyAndChallenge. |
byte[] |
getSignature()
Returns a copy of the signature byte array. |
AlgorithmId |
getSignatureAlgorithm()
Returns a copy of the signature algorithm for this object. |
String |
toString()
Returns a string representation of this SignedPublicKeyAndChallenge object. |
boolean |
verify()
Verifies the signature of the SignedPublicKeyAndChallenge based on the public key stored with the PublicKeyAndChallenge. |
| 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 SignedPublicKeyAndChallenge(byte[] der)
throws IOException
der - a byte array containing the DER encoding of a SignedPublicKeyAndChallenge
object.
public SignedPublicKeyAndChallenge(byte[] der,
String provider)
throws IOException
der - a byte array containing the DER encoding of a SignedPublicKeyAndChallenge
object.provider - the provider to be used.
public SignedPublicKeyAndChallenge(PublicKeyAndChallenge publicKeyAndChallenge,
String signatureAlgorithm,
PrivateKey privateKey)
throws NoSuchAlgorithmException,
SignatureException,
InvalidKeyException
publicKey - PublicKeychallenge - Challenge stringsignatureAlgorithm - Signature algorithm string
public SignedPublicKeyAndChallenge(PublicKeyAndChallenge publicKeyAndChallenge,
String signatureAlgorithm,
PrivateKey privateKey,
String provider)
throws NoSuchAlgorithmException,
SignatureException,
InvalidKeyException
publicKey - PublicKeychallenge - Challenge stringsignatureAlgorithm - Signature algorithm stringprovider - the provider to be used| Method Detail |
public AlgorithmId getSignatureAlgorithm()
throws IOException
public byte[] getSignature()
public PublicKeyAndChallenge getPublicKeyAndChallenge()
public boolean verify()
throws NoSuchAlgorithmException,
InvalidKeyException,
SignatureException,
IOException
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 SignedPublicKeyAndChallenge object.public boolean equals(Object other)
other - the 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 | ||||||||