| |
|
| java.lang.Object org.apache.harmony.security.utils.ObjectIdentifier
ObjectIdentifier | final public class ObjectIdentifier (Code) | | Instance of this class represents ObjectIdentifier (OID).
OID is represented as a sequence of subidentifier.
Each subidentifier is represented as non negative integer value.
There are at least 2 subidentifiers in the sequence.
Valid values for first subidentifier are 0, 1 and 2.
If the first subidentifier has 0 or 1 value the second
subidentifier MUST be less then 40.
See Also: http://asn1.elibel.tm.fr/en/standards/index.htm |
Constructor Summary | |
public | ObjectIdentifier(int[] oid) Creates ObjectIdentifier(OID) from array of integers. | public | ObjectIdentifier(int[] oid, String name, Object oidGroup) Creates ObjectIdentifier(OID) from array of integers.
Parameters: oid - - array of integers Parameters: name - - name of OID Parameters: oidGroup - - OID's group. |
ObjectIdentifier | public ObjectIdentifier(int[] oid)(Code) | | Creates ObjectIdentifier(OID) from array of integers.
Parameters: oid - - array of integers - OID object throws: NullPointerException - - if oid is null throws: IllegalArgumentException - - if oid is invalid |
ObjectIdentifier | public ObjectIdentifier(int[] oid, String name, Object oidGroup)(Code) | | Creates ObjectIdentifier(OID) from array of integers.
Parameters: oid - - array of integers Parameters: name - - name of OID Parameters: oidGroup - - OID's group. Is used to separate different OID's - OID object throws: NullPointerException - - if oid is null throws: IllegalArgumentException - - if oid is invalid |
equals | public boolean equals(Object o)(Code) | | Compares object with OID for equality.
true if object is ObjectIdentifier and it has the samerepresentation as array of integers, otherwise false |
getGroup | public Object getGroup()(Code) | | Gets OID's group.
group |
getOid | public int[] getOid()(Code) | | Gets OID.
oid |
hashIntArray | public static int hashIntArray(int[] array)(Code) | | Returns hash code for array of integers
Parameters: oid - - array of integers |
toOIDString | public String toOIDString()(Code) | | Add "OID." to the beginning of string representation.
oid as string |
toString | public String toString()(Code) | | Overrides Object.toString()
oid as string |
|
|
|