Package se.swedenconnect.cert.extensions
Class BiometricInfo
java.lang.Object
org.bouncycastle.asn1.ASN1Object
se.swedenconnect.cert.extensions.BiometricInfo
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable,org.bouncycastle.util.Encodable
public class BiometricInfo
extends org.bouncycastle.asn1.ASN1Object
BiometricInfo X.509 extension implementation for extending Bouncycastle.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBiometricInfo(List<org.bouncycastle.asn1.x509.qualified.BiometricData> biometricDataList) Constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic BiometricInfofromExtensions(org.bouncycastle.asn1.x509.Extensions extensions) Creates BiometricInfo extension objectstatic BiometricInfogetInstance(Object obj) Creates BiometricInfo extension objectstatic StringgetTypeString(org.bouncycastle.asn1.x509.qualified.TypeOfBiometricData typeOfBiometricData) Get a string representing the type of biometric dataorg.bouncycastle.asn1.ASN1PrimitiveProduce an object suitable for an ASN1OutputStream.toString()Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Field Details
-
OID
public static final org.bouncycastle.asn1.ASN1ObjectIdentifier OID
-
-
Constructor Details
-
BiometricInfo
Constructor- Parameters:
biometricDataList- List of biometric data
-
-
Method Details
-
getInstance
Creates BiometricInfo extension object- Parameters:
obj- object holding extension data- Returns:
- BiometricInfo extension
-
fromExtensions
Creates BiometricInfo extension object- Parameters:
extensions- BiometricInfo extension- Returns:
- BiometricInfo extension
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()Produce an object suitable for an ASN1OutputStream.AuthenticationContexts ::= SEQUENCE SIZE (1..MAX) OF AuthenticationContext AuthenticationContext ::= SEQUENCE { contextType UTF8String, contextInfo UTF8String OPTIONAL }- Specified by:
toASN1Primitivein interfaceorg.bouncycastle.asn1.ASN1Encodable- Specified by:
toASN1Primitivein classorg.bouncycastle.asn1.ASN1Object- Returns:
- ASN.1 object of the extension
-
toString
-
getTypeString
public static String getTypeString(org.bouncycastle.asn1.x509.qualified.TypeOfBiometricData typeOfBiometricData) Get a string representing the type of biometric data- Parameters:
typeOfBiometricData- type of biomentric data- Returns:
- presentation string representing type
-