|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IVerificationResult
Verification result. An object implementing this interface represents a token passed between the update framework and the verifier and verification listener. The verifier uses the token to capture the result of the file verification. It is then passed to the verification listener to optionally present this information to the user (in an implementation-specific way). The verification listener in turn uses this token to capture the desired response.
Clients may implement this interface.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
Field Summary | |
---|---|
static int |
JAR_CERTIFICATE_EXPIRED
Certificate is expired |
static int |
TYPE_ENTRY_CORRUPTED
Indicates the file has been modified since it was signed |
static int |
TYPE_ENTRY_NOT_SIGNED
Indicates the file type is recognized but the file is not signed |
static int |
TYPE_ENTRY_SIGNED_RECOGNIZED
Indicates the file is signed by a known signer |
static int |
TYPE_ENTRY_SIGNED_UNRECOGNIZED
Indicates the file is signed but the signer is not known |
static int |
TYPE_ENTRY_UNRECOGNIZED
Could not perform verification due to unrecognized file |
static int |
UNKNOWN_ERROR
Error occurred during verification |
static int |
VERIFICATION_CANCELLED
Verification was cancelled |
Method Summary | |
---|---|
boolean |
alreadySeen()
Indicates whether the signer and verifier info have already been accepted by the user during a previous verification of one of the file of the feature. |
java.security.cert.Certificate[] |
getCertificates()
Return a chain of certificate from leaf cert to the root cert. |
ContentReference |
getContentReference()
Returns the content reference that is the target of the verification. |
IFeature |
getFeature()
Returns the feature the referenced file is part of. |
java.lang.String |
getSignerInfo()
Returns text describing the signer |
java.lang.String |
getText()
Returns display text describing the result of the verification. |
int |
getVerificationCode()
Returns the verification code. |
java.lang.Exception |
getVerificationException()
Returns any exception caught during verification |
java.lang.String |
getVerifierInfo()
Returns text describing the authority that verified/ certified the signer |
boolean |
isFeatureVerification()
Indicates whether the referenced file is part of the overall feature definition, or one of its component plug-in or non-plug-in entries. |
Field Detail |
---|
static final int TYPE_ENTRY_NOT_SIGNED
TYPE_ENTRY_UNRECOGNIZED
,
Constant Field Valuesstatic final int TYPE_ENTRY_CORRUPTED
static final int TYPE_ENTRY_SIGNED_RECOGNIZED
static final int TYPE_ENTRY_SIGNED_UNRECOGNIZED
static final int UNKNOWN_ERROR
static final int VERIFICATION_CANCELLED
static final int TYPE_ENTRY_UNRECOGNIZED
TYPE_ENTRY_NOT_SIGNED
,
Constant Field Valuesstatic final int JAR_CERTIFICATE_EXPIRED
Method Detail |
---|
ContentReference getContentReference()
IFeature getFeature()
int getVerificationCode()
java.lang.Exception getVerificationException()
null
.java.lang.String getText()
null
.java.lang.String getSignerInfo()
null
.java.lang.String getVerifierInfo()
null
.boolean isFeatureVerification()
true
if reference is a feature file,
false
if reference is a plug-in or non-plug-in fileboolean alreadySeen()
true
if the result has already been accepted, false
if the result has not yet been accepted by the userjava.security.cert.Certificate[] getCertificates()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |