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

java.lang.Object
  extended by net.rim.device.api.crypto.oid.OID
All Implemented Interfaces:
Persistable

public final class OID
extends Object
implements Persistable

Stores an object identifier (OID).

See Also:
OIDs
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:
BlackBerry API 3.6.0

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.
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:
BlackBerry API 3.6.0

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.
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:
BlackBerry API 3.6.0

OID

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

Parameters:
oid - A decimal dotted String encoding of an 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:
BlackBerry API 3.6.0


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.
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:
BlackBerry API 3.6.0

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.
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:
BlackBerry API 3.6.0

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.
See Also:
Boolean.hashCode(), Hashtable
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:
BlackBerry API 3.6.0

hashCode

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

Overrides:
hashCode in class Object
Returns:
The hashCode.
See Also:
Object.equals(java.lang.Object), Hashtable
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:
BlackBerry API 3.6.0





Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.