SHOW Signed
 

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

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

public final class OID
extends Object
implements Persistable

Stores an object identifier (OID).

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
Method Detail

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 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

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 applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.



Copyright 1999-2009 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.