/** * Checks if parameter represents OID * * @param alias alias to be checked * @return 'true' if parameter represents OID */ public static boolean isOID(String alias) { return ObjectIdentifier.isOID(normalize(alias)); }
@Override protected void getValues(Object object, Object[] values) { OtherName on = (OtherName) object; values[0] = ObjectIdentifier.toIntArray(on.typeID); values[1] = on.value; } };
/** * Returns the value of extnID field of the structure. */ public String getExtnID() { if (extnID_str == null) { extnID_str = ObjectIdentifier.toString(extnID); } return extnID_str; }
/** * Creates ObjectIdentifier(OID) from array of integers. * * @param oid array of integers * @throws IllegalArgumentException if oid is invalid or null */ public ObjectIdentifier(int[] oid) { validate(oid); this.oid = oid; }
/** * Creates ObjectIdentifier(OID) from array of integers. * * @param oid array of integers * @throws IllegalArgumentException if oid is invalid or null */ public ObjectIdentifier(int[] oid) { validate(oid); this.oid = oid; }
@Override protected void getValues(Object object, Object[] values) { AccessDescription ad = (AccessDescription) object; values[0] = ObjectIdentifier.toIntArray(ad.accessMethod); values[1] = ad.accessLocation; } };
@Override public String toString() { if (soid == null) { soid = toString(oid); } return soid; }
/** * Checks if parameter represents OID * * @param alias alias to be checked * @return 'true' if parameter represents OID */ public static boolean isOID(String alias) { return ObjectIdentifier.isOID(normalize(alias)); }
/** * Creates ObjectIdentifier(OID) from array of integers. * * @param oid array of integers * @throws IllegalArgumentException if oid is invalid or null */ public ObjectIdentifier(int[] oid) { validate(oid); this.oid = oid; }
/** * Creates ObjectIdentifier(OID) from string representation. * * @param strOid oid string * @throws IllegalArgumentException if oid string is invalid or null */ public ObjectIdentifier(String strOid) { this.oid = toIntArray(strOid); this.soid = strOid; }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new AlgorithmIdentifier(ObjectIdentifier .toString((int[]) values[0]), (byte[]) values[1]); }
/** * Checks if parameter represents OID * * @param alias alias to be checked * @return 'true' if parameter represents OID */ public static boolean isOID(String alias) { return ObjectIdentifier.isOID(normalize(alias)); }
/** * Creates ObjectIdentifier(OID) from array of integers. * * @param oid array of integers * @throws IllegalArgumentException if oid is invalid or null */ public ObjectIdentifier(int[] oid) { validate(oid); this.oid = oid; }
public Extension(String extnID, boolean critical, byte[] extnValue) { this.extnID_str = extnID; this.extnID = ObjectIdentifier.toIntArray(extnID); this.critical = critical; this.extnValue = extnValue; }
public Object getDecodedObject(BerInputStream in) throws IOException { int[] oid = (int[]) super.getDecodedObject(in); return ObjectIdentifier.toString(oid); } });
/** * Checks if parameter represents OID * * @param alias alias to be checked * @return 'true' if parameter represents OID */ public static boolean isOID(String alias) { return ObjectIdentifier.isOID(normalize(alias)); }
/** * Creates ObjectIdentifier(OID) from array of integers. * * @param oid array of integers * @throws IllegalArgumentException if oid is invalid or null */ public ObjectIdentifier(int[] oid) { validate(oid); this.oid = oid; }
/** * Returns whether the given string is a valid ObjectIdentifier * (OID) representation. * * String representation is defined as for {@link #toIntArray}. * * @param str string representation of OID * @return true if oidString has valid syntax or false if not */ public static boolean isOID(String str) { return toIntArray(str, false) != null; }
@Override protected Object getDecodedObject(BerInputStream in) { Object[] values = (Object[]) in.content; return new PolicyInformation(ObjectIdentifier.toString((int[]) values[0])); }
/** * Checks if parameter represents OID * * @param alias alias to be checked * @return 'true' if parameter represents OID */ public static boolean isOID(String alias) { return ObjectIdentifier.isOID(normalize(alias)); }