TypeOfBiometricData ::= CHOICE { predefinedBiometricType PredefinedBiometricType, biometricDataOid OBJECT IDENTIFIER } PredefinedBiometricType ::= INTEGER { picture(0),handwritten-signature(1)} (picture|handwritten-signature)
if (predefinedBiometricType == PICTURE || predefinedBiometricType == HANDWRITTEN_SIGNATURE) { obj = new DERInteger(predefinedBiometricType); } else { throw new IllegalArgumentException("unknow PredefinedBiometricType : " + predefinedBiometricType); }
obj = BiometricDataID;
return (DERObjectIdentifier)obj;
if (obj == null || obj instanceof TypeOfBiometricData) { return (TypeOfBiometricData)obj; } if (obj instanceof DERInteger) { DERInteger predefinedBiometricTypeObj = DERInteger.getInstance(obj); int predefinedBiometricType = predefinedBiometricTypeObj.getValue().intValue(); return new TypeOfBiometricData(predefinedBiometricType); } else if (obj instanceof DERObjectIdentifier) { DERObjectIdentifier BiometricDataID = DERObjectIdentifier.getInstance(obj); return new TypeOfBiometricData(BiometricDataID); } throw new IllegalArgumentException("unknown object in getInstance");
return ((DERInteger)obj).getValue().intValue();
return obj instanceof DERInteger;
return obj.getDERObject();