SHOW Signed

net.rim.device.api.crypto.oid
Class OID

java.lang.Object
  |
  +--net.rim.device.api.crypto.oid.OID
All Implemented Interfaces:
Persistable, net.rim.vm.Persistable

public final class OID
extends Object
implements Persistable

Stores an object identifier (OID).

Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

Since:
JDE 3.6.0
See Also:
OIDs

Constructor Summary
 Category: Signed OID(byte[] oidEncoding)
          Creates an OID from the given DER Encoded byte array.
 Category: Signed OID(byte[] oidEncoding, int offset, int length)
          Creates an OID from the given DER Encoded byte array.
 Category: Signed OID(String oid)
          Creates an OID from the given dotted decimal string.
 
Method Summary
 Category: Signed  boolean equals(Object object)
          Returns true if this OID and the provided OID specified by object represent the same OID.
 Category: Signed  int hashCode()
          Returns the hashCode of this OID object.
 Category: Signed  byte[] toByteArray()
          Returns the DER encoding of this OID as a byte array.
 Category: Signed  String toString()
          Returns a String containing the dotted decimal representation of the OID.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OID

public OID(byte[] oidEncoding)
Creates an OID from the given DER Encoded byte array.

Parameters:
oidEncoding - A byte array containing the DER encoding of an OID.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

OID

public OID(byte[] oidEncoding,
           int offset,
           int length)
Creates an OID from the given DER Encoded byte array.

Parameters:
oidEncoding - A byte array containing the DER encoding of an OID.
offset - The offset, or start position, of the encoding data within the array.
length - The length of the data, in bytes.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

OID

public OID(String oid)
Creates an OID from the given dotted decimal string.

Parameters:
oid - A decimal dotted String encoding of an OID.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Method Detail

toByteArray

public byte[] toByteArray()
Returns the DER encoding of this OID as a byte array.

Returns:
A byte array containing the DER encoding of this OID.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

toString

public String toString()
Returns a String containing the dotted decimal representation of the OID.

Overrides:
toString in class Object
Returns:
A String containing the encoding.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

equals

public boolean equals(Object object)
Returns true if this OID and the provided OID specified by object represent the same OID.

Overrides:
equals in class Object
Parameters:
object - An object representing another OID.
Returns:
Returns true if the OIDs are equal, false otherwise.
Since:
JDE 4.0.2
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

hashCode

public int hashCode()
Returns the hashCode of this OID object.

Overrides:
hashCode in class Object
Returns:
The hashCode.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.


Copyright 1999-2004 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.