|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.rsa.certj.cert.extensions.X509V3Extension | +--com.rsa.certj.cert.extensions.BiometricInfo
This class builds and holds the
BiometricInfo
extension. This extension is used
for storage of biometric information. Biometric information is
stored in the form of a hash of a biometric template.
biometricInfo EXTENSION ::= { SYNTAX BiometricSyntax IDENTIFIED BY id-pe-biometricInfo } id-pe-biometricInfo OBJECT IDENTIFIER ::= {id-pe 2} id-pe OBJECT IDENTIFIER ::= { id-pkix 1 } id-pkix OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) dod(6) internet(1) security(5) mechanisms(5) pkix(7) } BiometricSyntax ::= SEQUENCE OF BiometricData BiometricData ::= SEQUENCE { typeOfBiometricData TypeOfBiometricData, hashAlgorithm AlgorithmIdentifier, biometricDataHash OCTET STRING, sourceDataUri IA5String OPTIONAL } TypeOfBiometricData ::= CHOICE { predefinedBiometricType PredefinedBiometricType, biometricDataID OBJECT IDENTIFIER } PredefinedBiometricType ::= INTEGER { picture(0), handwritten-signature(1)} (picture|handwritten-signature,...) |
See Also
Constructor Summary |
|
BiometricInfo()
Constructs an empty |
|
BiometricInfo(BiometricData bioData,
boolean criticality)
Constructs a |
Method Summary |
|
void |
addBioData(BiometricData bioData)
Adds a new bio data to this extension. |
clone()
Overrrides the default |
|
void |
decodeValue(byte[] valueBER,
int offset)
Decode the value. |
int |
derEncodeValue(byte[] encoding,
int offset)
Place the encoding of the value into encoding, beginning at offset. |
int |
derEncodeValueInit()
Initialize for encoding the value. |
getBioData(int index)
Gets the biometric data at the specified index |
|
int |
getBioDataCount()
Gets the number of different biometric data ojects stored in this extension |
Methods inherited from class com.rsa.certj.cert.extensions.X509V3Extension |
extend, getCriticality, getDEREncoding, getDERLen, getExtensionType, getExtensionTypeString, getInstance, getNextBEROffset, isExtensionType, setCriticality, setEncoding, setSpecialOID, setStandardOID |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BiometricInfo()
BiometricInfo
object.public BiometricInfo(BiometricData bioData, boolean criticality)
BiometricInfo
object and
initializes it with the given values and the specified
criticality.
Parameters
bioData | biometric data stored in form of a hash of a biometric template | ||
criticality | The user-specified criticality. |
Method Detail |
public void addBioData(BiometricData bioData)
Parameters
bioData | biometric data stored in form of a hash of a biometric template |
public int getBioDataCount()
Returns
public BiometricData getBioData(int index) throws CertificateException
Parameters
index | An index that specifies the |
Returns
Throws
CertificateException
- if specified index is invalidpublic void decodeValue(byte[] valueBER, int offset) throws CertificateException
Overrides
decodeValue
in class X509V3Extension
Parameters
valueBER | The BER encoding of the extension's value. | ||
offset | The offset into valueBER where the encoding actually begins. |
Throws
CertificateException
- If the encoding is
invalid for this extension.public int derEncodeValueInit()
Overrides
derEncodeValueInit
in class X509V3Extension
Returns
0
if there is an error in encodingpublic int derEncodeValue(byte[] encoding, int offset)
Overrides
derEncodeValue
in class X509V3Extension
Parameters
encoding | The byte array into which the result will be placed. | ||
offset | The offest into encoding where the writing is to begin. |
Returns
public Object clone() throws CloneNotSupportedException
clone
method
to get a deeper clone.
Overrides
clone
in class X509V3Extension
Returns
BiometricInfo
object,
a copy of this object.
Throws
CloneNotSupportedException
- If the
cloning operation is not successful.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |