/** * Returns the value of extnID field of the structure. */ public String getExtnID() { if (extnID_str == null) { extnID_str = ObjectIdentifier.toString(extnID); } return extnID_str; }
@Override public String toString() { if (soid == null) { soid = toString(oid); } return soid; }
public Object getDecodedObject(BerInputStream in) throws IOException { int[] oid = (int[]) super.getDecodedObject(in); return ObjectIdentifier.toString(oid); } });
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new AlgorithmIdentifier(ObjectIdentifier .toString((int[]) values[0]), (byte[]) values[1]); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new PolicyInformation(ObjectIdentifier.toString((int[]) values[0])); }
/** * Creates a new {@code PolicyQualifierInfo} from the specified encoded * form. * * @param encoded * the DER encoded policy qualifier. * @throws IOException * the policy qualifier cannot be decoded. */ public PolicyQualifierInfo(byte[] encoded) throws IOException { if (encoded == null) { throw new NullPointerException("encoded == null"); } if (encoded.length == 0) { throw new IOException("encoded.length == 0"); } this.encoded = new byte[encoded.length]; System.arraycopy(encoded, 0, this.encoded, 0, this.encoded.length); // DER Decoding: Object[] decoded = (Object[]) org.apache.harmony.security.x509.PolicyQualifierInfo.ASN1 .decode(this.encoded); policyQualifierId = ObjectIdentifier.toString((int[]) decoded[0]); policyQualifier = (byte[]) decoded[1]; }
protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; BigInteger nonce = (values[7] == null) ? null : new BigInteger( (byte[]) values[7]); return new TSTInfo( ASN1Integer.toIntValue(values[0]), ObjectIdentifier.toString((int[]) values[1]), (MessageImprint) values[2], new BigInteger((byte[]) values[3]), (Date) values[4], (int []) values[5], (Boolean) values[6], nonce, (GeneralName) values[8], (Extensions) values[9]); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new AccessDescription( ObjectIdentifier.toString((int[]) values[0]), (GeneralName) values[1], in.getEncoded()); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new OtherName(ObjectIdentifier.toString((int[]) values[0]), (byte[]) values[1], in.getEncoded()); }
result.add(ObjectIdentifier.toString((int[]) name)); break; case X400_ADDR:
protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; String objID = (values[2] == null) ? null : ObjectIdentifier .toString((int[]) values[2]); BigInteger nonce = (values[3] == null) ? null : new BigInteger( (byte[]) values[3]); if (values[5] == null) { return new TimeStampReq( ASN1Integer.toIntValue(values[0]), (MessageImprint) values[1], objID, nonce, (Boolean) values[4], null, in.getEncoded() ); } else { return new TimeStampReq( ASN1Integer.toIntValue(values[0]), (MessageImprint) values[1], objID, nonce, (Boolean) values[4], (Extensions) values[5], in.getEncoded() ); } }
case REG_ID: // registeredID result = new GeneralName(in.choiceIndex, ObjectIdentifier.toString((int[]) in.content)); break; default:
break; case REG_ID: result = "registeredID[8]: " + ObjectIdentifier.toString((int[]) name); break; case X400_ADDR:
@Override public String toString() { if (soid == null) { soid = toString(oid); } return soid; }
@Override public String toString() { if (soid == null) { soid = toString(oid); } return soid; }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new AlgorithmIdentifier(ObjectIdentifier .toString((int[]) values[0]), (byte[]) values[1]); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new AlgorithmIdentifier(ObjectIdentifier .toString((int[]) values[0]), (byte[]) values[1]); }
public Object getDecodedObject(BerInputStream in) throws IOException { int[] oid = (int[]) super.getDecodedObject(in); return ObjectIdentifier.toString(oid); } });
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new AccessDescription( ObjectIdentifier.toString((int[]) values[0]), (GeneralName) values[1], in.getEncoded()); }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new OtherName(ObjectIdentifier.toString((int[]) values[0]), (byte[]) values[1], in.getEncoded()); }