org.eclipse.osgi.internal.provisional.verifier
Interface CertificateVerifier


public interface CertificateVerifier

A certificate verifier is used to verify the authenticity of a signed repository. A certificate verifier is created using a CertificateVerifierFactory.

EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the equinox team.


Method Summary
 void checkContent()
          Verify the content of the repository.
 CertificateChain[] getChains()
          Returns all certificate chains of the repository.
 boolean isSigned()
          Returns true if the repository is signed
 java.lang.String[] verifyContent()
          Verifies the content of the repository.
 

Method Detail

checkContent

void checkContent()
                  throws java.security.cert.CertificateException,
                         java.security.cert.CertificateExpiredException,
                         java.security.SignatureException
Verify the content of the repository.

Throws:
java.security.cert.CertificateException
java.security.cert.CertificateExpiredException
java.security.cert.CertificateParsingException
java.security.SignatureException

verifyContent

java.lang.String[] verifyContent()
Verifies the content of the repository. An array is returned with the entry names which are corrupt. If no entries are corrupt then an empty array is returned.

Returns:
An array of entry names which are corrupt. An empty array is returned if the repository is not corrupt or if the repository is not signed.

isSigned

boolean isSigned()
Returns true if the repository is signed

Returns:
true if the repository is signed

getChains

CertificateChain[] getChains()
Returns all certificate chains of the repository. All certificate chains are returned whether they are trusted or not. If the repository is not signed then an empty array is returned.

Returns:
all certificate chains of the repository


Copyright © 2007-2012 FuseSource, Corp.. All Rights Reserved.