|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.ProviderImplementation | +--com.rsa.certj.provider.path.CertPathCommonImplementation
CertPathCommon
This class implements methods that are used by all the certification path providers that RSA supports.
Copyright © RSA Security Inc., 1999-2001. All rights reserved.
Constructor Summary |
|
CertPathCommonImplementation(CertJ certJ,
String name)
Deprecated. Constructs a |
Method Summary |
|
boolean |
buildCertPath(CertPathCtx pathCtx,
Object startObject,
Vector certPath,
Vector crlList,
Vector crlCerts,
Vector policyInfoList)
Deprecated. Constructs a path in certPath from startObject to one of the trusted certificates provided in pathCtx, the certification path context. |
getDatabase()
Deprecated. Returns a |
|
void |
getNextCertCandidates(Object baseObject,
Vector candidates)
Deprecated. Collects, in candidates, possible certificates for baseObject. |
void |
getNextCertInPath(CertPathCtx pathCtx,
Object baseObject,
Vector certList)
Deprecated. Returns a set of candidate certificates in certList whose public key may be used to verify the signature of baseObject. |
int |
getPathOptions()
Deprecated. Returns the path option flag. |
getPolicies()
Deprecated. Returns the initial acceptable policies. |
|
boolean |
validateCertificate(CertPathCtx pathCtx,
Certificate cert,
com.rsa.jsafe.JSAFE_PublicKey validationKey)
Deprecated. Validates two certificate fields, the validity period and the signature. |
boolean |
verifyPath(Vector path,
Vector crlList,
Vector crlCerts,
Vector policyInfoList)
Deprecated. Verifies the certification path in path. |
boolean |
verifyRevocation(X509Certificate cert,
Vector crlList,
Vector crlCerts)
Deprecated. Verifies the revocation status of cert based on the conditions provided in certCtx. |
Methods inherited from class com.rsa.certj.ProviderImplementation |
getName, toString, unregister |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CertPathCommonImplementation(CertJ certJ, String name) throws InvalidParameterException
>CertPathCommonImplementation
object with a name, name.Parameters
certJ | A | ||
name | A |
Throws
InvalidParameterException
- If any
argument is invalid.Method Detail |
public boolean buildCertPath(CertPathCtx pathCtx, Object startObject, Vector certPath, Vector crlList, Vector crlCerts, Vector policyInfoList) throws NotSupportedException, CertPathException
null
values for the certPath,
crlList, and crlCerts.buildCertPath
in interface CertPathInterface
Parameters
pathCtx | A | ||
startObject | An | ||
certPath | A | ||
crlList | A | ||
crlCerts | A | ||
policyInfoList | A |
Returns
boolean
with a value of
true
if valid path is
built or verified; otherwise, false
.
Throws
NotSupportedException
- If
startObject is neither X509Certificate
nor X509CRL
.
CertPathException
- If any certification
path processing provider operation fails.See Also
(com.rsa.certj.spi.path.CertPathCtx pathCtx,
java.lang.Object startObject, java.util.Vector certPath,
java.util.Vector crlList, java.util.Vector crlCerts,
java.util.Vector certPolicyList)
public void getNextCertInPath(CertPathCtx pathCtx, Object baseObject, Vector certList) throws NotSupportedException, CertPathException
getNextCertInPath
in interface CertPathInterface
Parameters
pathCtx | A | ||
baseObject | An | ||
certList | A |
Throws
NotSupportedException
- If
baseObject is not a type that the path algorithm
supports.
CertPathException
- If any certification
path processing provider operation fails.See Also
(com.rsa.certj.spi.path.CertPathCtx pathCtx,
java.lang.Object baseObject, java.util.Vector certList)
public boolean validateCertificate(CertPathCtx pathCtx, Certificate cert, com.rsa.jsafe.JSAFE_PublicKey validationKey) throws NotSupportedException, CertPathException
validationKey
.pathOptions
field of the
pathCtx can be used to
selectively disable the above checks.validateCertificate
in interface CertPathInterface
Parameters
pathCtx | A | ||
cert | A | ||
validationKey | A |
Returns
boolean
with a value of
true
if validated;
otherwise, false
.
Throws
NotSupportedException
- If this method
is not supported for a given set of arguments by the provider.
CertPathException
- If any certification
path processing provider operation fails.See Also
(com.rsa.certj.spi.path.CertPathCtx pathCtx,
com.rsa.certj.cert.Certificate cert,
com.rsa.jafe.JSAFE_PublicKey validationKey)
public int getPathOptions()
Returns
int
indicating the path option flag of
this object.public Vector getPolicies()
Returns
Vector
holding a set of initial
acceptable policies.public DatabaseService getDatabase()
DatabaseService
associated with this
object.
Returns
DatabaseService
associated with this
object.public void getNextCertCandidates(Object baseObject, Vector candidates) throws CertPathException
Parameters
baseObject | An | ||
candidates | A |
Throws
CertPathException
- If any certification
path processing fails.public boolean verifyPath(Vector path, Vector crlList, Vector crlCerts, Vector policyInfoList) throws CertPathException
Parameters
path | A | ||
crlList | A | ||
crlCerts | A | ||
policyInfoList | A |
Returns
boolean
with a value of
true
if validated; otherwise false
.
Throws
CertPathException
- This method always throws an
exception.public boolean verifyRevocation(X509Certificate cert, Vector crlList, Vector crlCerts) throws CertPathException
(a) Verify the basic certificate information, including: (3) the certificate had not been revoked at time T and is not currently on hold status that commenced before time T, (this may be determined by obtaining the appropriate CRL or status information, or by out-of-band mechanisms) |
Parameters
cert | An | ||
crlList | A | ||
crlCerts | A |
Returns
boolean
with a value of
true
if validated; otherwise, false
.
Throws
CertPathException
- If any certification
path processing fails.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |