|
Oracle Security Developer Tools PKI SDK TSP Java API Reference 10g Release 3 (10.1.3) B25376-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.security.crypto.tsp.TSPUtils
Defines various utility methods for the oracle.security.crypto.cert.tsp</code. package.
| Constructor Summary | |
TSPUtils() |
|
| Method Summary | |
static void |
validateMessageImprint(MessageImprint mi)Verifies that the algorithm specified in the given MessageImprint object is supported and that the length of the hash in the MessageImprint object is correct for the specified algorithm. |
static void |
validateStatus(TSPTimeStampResp tsr)Validates the status field for the given TimeStampResp message. |
static void |
verifyKeyPurposeID(oracle.security.crypto.cert.X509 cert)Verifies that the id-kp-timeStamping KeyPuposeID is present in the given X.509 certificate. |
static void |
verifyTimeStampTokenSignature(oracle.security.crypto.cms.CMSSignedDataContentInfo timeStampToken, oracle.security.crypto.cert.X509 tsaCert)Verifies the signature of the given timeStampToken using the given X.509 certificate. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TSPUtils()
| Method Detail |
public static void verifyKeyPurposeID(oracle.security.crypto.cert.X509 cert)
throws TSPException
cert - The certificateTSPException - If the id-kp-timeStamping KeyPuposeID is not present.
public static void validateMessageImprint(MessageImprint mi)
throws TSPException,
oracle.security.crypto.core.AlgorithmIdentifierException
mi - The MessageImprint object.oracle.security.crypto.core.AlgorithmIdentifierException - If the algorithm is not supported.TSPException - If the hash length is incorrect.
public static void validateStatus(TSPTimeStampResp tsr)
throws TSPException
tsr - The TimeStampResp message.TSPException - Can occur under the following circumstances:
public static void verifyTimeStampTokenSignature(oracle.security.crypto.cms.CMSSignedDataContentInfo timeStampToken,
oracle.security.crypto.cert.X509 tsaCert)
throws TSPException
timeStampToken - The given timeStampToken.tsaCert - The given X.509 certificate.TSPException
|
Oracle Security Developer Tools PKI SDK TSP Java API Reference 10g Release 3 (10.1.3) B25376-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||