|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.cert.verify.BasicCertificateVerifier
public class BasicCertificateVerifier
A very simple certificate verifier that checks all certificates against one trusted issuer certificate and does not support certificate chains. This verifier is very efficient and should be used if only one issuer certificate is used.
Constructor Summary | |
---|---|
BasicCertificateVerifier(X509Certificate trustedIssuer)
Creates a certificate verifier using the specified certificate as the one and only trusted issuer. |
|
BasicCertificateVerifier(X509Certificate trustedIssuer,
String provider)
Creates a certificate verifier using the specified certificate as the one and only trusted issuer and the specified crypto provider for cryptographic functions. |
Method Summary | |
---|---|
void |
verifyCertificate(Certificate certificate)
Verifies the specified certificate and returns without exception if the certificate could successfully be verified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicCertificateVerifier(X509Certificate trustedIssuer)
trustedIssuer
- The certificate of the trusted issuer. Must not be null
.public BasicCertificateVerifier(X509Certificate trustedIssuer, String provider)
BasicCertificateVerifier(X509Certificate)
instead.
trustedIssuer
- The certificate of the trusted issuer. Must not be null
.provider
- The name of the crypto provider used for cryptographic functions. Must not
be null
.Method Detail |
---|
public void verifyCertificate(Certificate certificate) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
verifyCertificate
in interface CertificateVerifier
certificate
- The certificate to be verified. Must not be null
.
CertificateException
- Thrown on certificate encoding errors.
NoSuchAlgorithmException
- Thrown on unsupported signature algorithms.
InvalidKeyException
- Thrown on incorrect keys.
NoSuchProviderException
- Thrown on incorrect crypto provider usage.
SignatureException
- Thrown on incorrect signatures.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:16:59
Copyright (c) 2002-2007 Ergon Informatik AG