Index

A C D E F G I M N O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

A

APPVERIFIER_LOG_ENABLED - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The BON constant to enable or disable logs.
APPVERIFIER_TRUSTED_CAS_PATH - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The BON constant holding the storage ID of the trusted CAs file loaded by DefaultCertificateChainValidator.fromResource().
AppVerifierErrorMessages - Class in com.microej.util.appverifier
Defines the error message identifiers reported by the application verifier and builds their messages.
available() - Method in class com.microej.util.appverifier.SignedApplicationBinaryInputStream
 
available() - Method in class com.microej.util.appverifier.util.DerValueInputStream
 

C

CATEGORY - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
Error messages category.
CERTIFICATE_CHAIN_VERIFIED_NOT_AUTHORIZED - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The certificate chain was verified but not authorized.
CERTIFICATE_TYPE_X509 - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The X.509 certificate type, as passed to CertificateFactory.getInstance(String).
CertificateChainValidator - Interface in com.microej.util.appverifier
Checks the trust in the first element of a certificate chain.
checkStreamEnd() - Method in class com.microej.util.appverifier.util.DerValueInputStream
Checks if the end of the stream is reached.
close() - Method in class com.microej.util.appverifier.SignedApplicationBinaryInputStream
 
close() - Method in class com.microej.util.appverifier.util.DerValueInputStream
Does nothing: closing this stream must not close the underlying signed stream, which is still being read.
com.microej.util.appverifier - package com.microej.util.appverifier
Provides the API and the implementation used to verify signed Application binaries.
com.microej.util.appverifier.util - package com.microej.util.appverifier.util
Provides helpers to parse DER (ASN.1 Distinguished Encoding Rules) encoded data.

D

DefaultCertificateChainValidator - Class in com.microej.util.appverifier
This implementation validates the first certificate of a chain when this certificate has been signed by a known and trusted certificate, named a trusted CA.
DefaultCertificateChainValidator() - Constructor for class com.microej.util.appverifier.DefaultCertificateChainValidator
Constructs a validator with no trusted CA.
DefaultCertificateChainValidator(X509Certificate[]) - Constructor for class com.microej.util.appverifier.DefaultCertificateChainValidator
Constructs a validator that anchors trust to the given trusted CAs.
DerFormatException - Exception in com.microej.util.appverifier.util
Generic exception thrown by DER* classes when an error of parsing occurs.
DerFormatException(String) - Constructor for exception com.microej.util.appverifier.util.DerFormatException
Constructs an instance of this class with a detailed message.
DerFormatException(String, Throwable) - Constructor for exception com.microej.util.appverifier.util.DerFormatException
Constructs an instance of this class with a Throwable and a detailed message.
DerFormatException(Throwable) - Constructor for exception com.microej.util.appverifier.util.DerFormatException
Constructs an instance of this class with a Throwable.
DerInputStreamHelper - Class in com.microej.util.appverifier.util
A DER format parsing helper class.
DerValueInputStream - Class in com.microej.util.appverifier.util
This InputStream implementation is used to limit the reading operations to a defined length of a DER encoded stream.
DerValueInputStream(InputStream) - Constructor for class com.microej.util.appverifier.util.DerValueInputStream
Constructs a fixed length input stream of a DER encoded stream.

E

expectTag(byte, InputStream) - Static method in class com.microej.util.appverifier.util.DerInputStreamHelper
Reads next byte from the InputStream and verifies if the tag matches the expected tag.

F

fromResource() - Static method in class com.microej.util.appverifier.DefaultCertificateChainValidator
Creates a validator whose trusted CAs are loaded from the Application resource file identified by the "appverifier.trustedCAs.path" BON constant (default /trustedCAs.der).

G

getMessage(char, String, int, Object...) - Static method in class com.microej.util.appverifier.AppVerifierErrorMessages
Builds the message identified by the given level, category and identifier.
getTag() - Method in class com.microej.util.appverifier.util.DerValueInputStream
Returns the tag of the stream, e.g.

I

INCONSISTENT_LENGTH - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The length of the input stream is inconsistent.
INVALID_APPLICATION_FORMAT - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The signed Application format is not valid.
INVALID_PUBLIC_KEY - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The key is null or not a public key.
INVALID_SIGNATURE - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The signature is not valid.
InvalidApplicationFormatException - Exception in com.microej.util.appverifier
Thrown when a signed Application is malformed or uses an unsupported format (version, signature algorithm or length).
InvalidApplicationFormatException() - Constructor for exception com.microej.util.appverifier.InvalidApplicationFormatException
Constructs an instance of this class.
InvalidApplicationFormatException(String) - Constructor for exception com.microej.util.appverifier.InvalidApplicationFormatException
Constructs an instance of this class with the specified, detailed message.
InvalidApplicationFormatException(String, Throwable) - Constructor for exception com.microej.util.appverifier.InvalidApplicationFormatException
Constructs an instance of this class with both a message and a cause.
InvalidApplicationFormatException(Throwable) - Constructor for exception com.microej.util.appverifier.InvalidApplicationFormatException
Constructs an instance of this class with a cause.
InvalidSignatureException - Exception in com.microej.util.appverifier
Thrown when the signature of a signed Application is invalid or cannot be verified.
InvalidSignatureException() - Constructor for exception com.microej.util.appverifier.InvalidSignatureException
Constructs an instance of this class.
InvalidSignatureException(String) - Constructor for exception com.microej.util.appverifier.InvalidSignatureException
Constructs an instance of this class with the specified detail message.
InvalidSignatureException(String, Throwable) - Constructor for exception com.microej.util.appverifier.InvalidSignatureException
Constructs an instance of this class with both a message and a cause.
InvalidSignatureException(Throwable) - Constructor for exception com.microej.util.appverifier.InvalidSignatureException
Constructs an instance of this class with a cause.
isSignedBy(Certificate, PublicKey) - Static method in class com.microej.util.appverifier.DefaultCertificateChainValidator
Tells whether the given certificate has been signed by the given public key.
isVerified() - Method in class com.microej.util.appverifier.SignedApplicationBinaryInputStream
Tells whether the digital signature of this Application has been verified.

M

MASK_CONSTRUCTED - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Mask for constructed types.
MASK_CONTEXT - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Mask for explicit tagging.

N

NO_CERTIFICATE - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The certificate is null.
NO_TRUSTED_CERTIFICATES - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
No trusted certificates are provided or matched.

O

onDataRead(byte) - Method in class com.microej.util.appverifier.util.DerValueInputStream
Called after a data read to apply a process on it, such as an update of hash.
onDataRead(byte[], int, int) - Method in class com.microej.util.appverifier.util.DerValueInputStream
Called after a data read to apply a process on it, such as an update of hash.
onStreamEnd() - Method in class com.microej.util.appverifier.util.DerValueInputStream
Called once the end of the stream is reached.

R

read() - Method in class com.microej.util.appverifier.SignedApplicationBinaryInputStream
 
read() - Method in class com.microej.util.appverifier.util.DerValueInputStream
 
read(byte[], int, int) - Method in class com.microej.util.appverifier.SignedApplicationBinaryInputStream
 
read(byte[], int, int) - Method in class com.microej.util.appverifier.util.DerValueInputStream
readBitString(InputStream) - Static method in class com.microej.util.appverifier.util.DerInputStreamHelper
Reads the next DER-encoded BitString value from the specified InputStream, and returns it as a byte[].
readBoolean(InputStream) - Static method in class com.microej.util.appverifier.util.DerInputStreamHelper
Reads the next DER-encoded Boolean value from the specified InputStream, and returns it as a boolean.
readDERLength(InputStream) - Static method in class com.microej.util.appverifier.util.DerInputStreamHelper
Reads a DER-encoded value length from an input stream.
readFully(InputStream, byte[], int, int) - Static method in class com.microej.util.appverifier.util.DerInputStreamHelper
See the general contract of the readFully method of DataInput.
readInteger(InputStream) - Static method in class com.microej.util.appverifier.util.DerInputStreamHelper
Reads the next DER-encoded Integer value from the specified InputStream, and returns it as an integer.
readNull(InputStream) - Static method in class com.microej.util.appverifier.util.DerInputStreamHelper
Reads the next DER-encoded NULL value from the specified InputStream, as a null value.
readOIDString(InputStream) - Static method in class com.microej.util.appverifier.util.DerInputStreamHelper
Reads the next DER-encoded ObjectID value from the specified InputStream, and returns it as a String representation in dotted-decimal notation (for example 1.2.840.113549.1.1.11).
readString(InputStream) - Static method in class com.microej.util.appverifier.util.DerInputStreamHelper
Reads the next DER-encoded value from the specified InputStream, and returns it as a String.
readUTF8String(InputStream) - Static method in class com.microej.util.appverifier.util.DerInputStreamHelper
Reads the next DER-encoded UTF8String value from the specified InputStream, and returns it as a String.
remainingLength() - Method in class com.microej.util.appverifier.util.DerValueInputStream
Returns the number of bytes that remains in the stream.

S

SIGNATURE_VERIFICATION_FAILED - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The verification of the signature has failed (signature object not initialized, signature improperly encoded or of the wrong type, signature algorithm unable to process the input data, etc.).
SignedApplicationBinaryInputStream - Class in com.microej.util.appverifier
The installable Application binary exposed by verify(InputStream).
SignedApplicationVerifier - Class in com.microej.util.appverifier
Verifies signed Application binaries: it validates the certificate path and verifies the signature of a DER-encoded signed Application, then exposes the installable Application binary.
SignedApplicationVerifier(CertificateChainValidator) - Constructor for class com.microej.util.appverifier.SignedApplicationVerifier
skip(long) - Method in class com.microej.util.appverifier.SignedApplicationBinaryInputStream
 
skip(long) - Method in class com.microej.util.appverifier.util.DerValueInputStream
Consumes, and drops, a given number of bytes.

T

TAG_BIT_STRING - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "BIT STRING" value.
TAG_BMP_STRING - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "BMPString" value.
TAG_BOOLEAN - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "BOOLEAN" value.
TAG_ENUMERATED - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value including an ASN.1 "ENUMERATED" value
TAG_GENERAL_STRING - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "GenerallString" value.
TAG_GENERALIZED_TIME - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "GeneralizedTime" value.
TAG_IA5_STRING - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value including an ASCII string
TAG_INTEGER - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "INTEGER" value.
TAG_NULL - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "NULL" value.
TAG_OBJECT_ID - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "OBJECT IDENTIFIER" value.
TAG_OCTET_STRING - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "OCTET STRING" value.
TAG_PRINTABLE_STRING - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value including a "printable" string
TAG_SEQUENCE - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "SEQUENCE" (zero to N elements, order is significant).
TAG_SEQUENCE_OF - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "SEQUENCE OF" (one to N elements, order is significant).
TAG_SET - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "SET" (zero to N members, order does not matter).
TAG_SET_OF - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "SET OF" (one to N members, order does not matter).
TAG_T61_STRING - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value including a "teletype" string
TAG_UNIVERSAL_STRING - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "UniversalString" value.
TAG_UTC_TIME - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "UTCTime" value.
TAG_UTF8_STRING - Static variable in class com.microej.util.appverifier.util.DerInputStreamHelper
Tag value indicating an ASN.1 "UTF8String" value.

U

UNSUPPORTED_INSTALL_VERSION - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The 'install' request version is not supported.
UNSUPPORTED_SIGNATURE_ALGORITHM - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The signature algorithm is not supported.
UNSUPPORTED_SIGNED_APPLICATION_VERSION - Static variable in class com.microej.util.appverifier.AppVerifierErrorMessages
The signed Application version is not supported.

V

validateCertificate(Certificate, Certificate, boolean, boolean) - Method in interface com.microej.util.appverifier.CertificateChainValidator
Asks this validator to check the given certificate, in the context of a certificate chain.
validateCertificate(Certificate, Certificate, boolean, boolean) - Method in class com.microej.util.appverifier.DefaultCertificateChainValidator
 
validateRoot(X509Certificate) - Method in class com.microej.util.appverifier.DefaultCertificateChainValidator
Validates the root of the certificate chain against this validator's trust anchor and decides whether the chain is authorized.
verify(InputStream) - Method in class com.microej.util.appverifier.SignedApplicationVerifier
Starts decoding the given DER-encoded signed Application stream and returns its installable binary.
A C D E F G I M N O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form