|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.system.CodeSigningKey
Provides access to code signing keys to facilitate run-time access checking.
| Field Summary | ||
static int |
RBB_SIGNER_ID
ID for the RIM BlackBerry signing authority. |
|
static int |
RCC_SIGNER_ID
ID for the RIM Crypto Certicom signing authority. |
|
static int |
RCR_SIGNER_ID
ID for the RIM Crypto Runtime signing authority. |
|
static int |
RRT_SIGNER_ID
ID for the RIM Runtime signing authority. |
|
| Constructor Summary | ||
CodeSigningKey(int signerId,
byte[] publicKey,
String description)
Creates new CodeSigningKey instance. |
||
CodeSigningKey(String signerId,
byte[] publicKey,
String description)
Creates new CodeSigningKey instance. |
||
| Method Summary | ||
static String |
convert(int i)
Retrieves string form of integer ID. |
|
static int |
convert(String s)
Retrieves integer form of string ID |
|
boolean |
equals(Object obj)
Determines whether provided object is equivalent to this code signing key. |
|
static CodeSigningKey |
get(int moduleHandle,
int signerId)
Retrieves code signing information associated with numeric signer ID. |
|
static CodeSigningKey |
get(int moduleHandle,
String signerId)
Retrieves code signing information associated with numeric signer ID. |
|
static CodeSigningKey |
get(Object obj)
Retrieves code signing information for provided object. |
|
String |
getDescription()
Retrieves description of Signing Authority. |
|
byte[] |
getPublicKey()
Retrieves public key. |
|
String |
getSignerId()
Retrieves signer's ID. |
|
int |
getSignerIdAsInt()
Retrieves signer's ID as integer. |
|
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int RCC_SIGNER_ID
public static final int RCR_SIGNER_ID
| Constructor Detail |
public CodeSigningKey(String signerId, byte[] publicKey, String description)
signerId - ID of the Signing Authority (typically this is the
filename of the key file).publicKey - Public key data.description - Description or name of the Signing Authority.
public CodeSigningKey(int signerId,
byte[] publicKey,
String description)
signerId - ID of the Signing Authority (you can find this value by
looking at the properties of the key file).publicKey - Public key data.description - Description or name of the Signing Authority.| Method Detail |
public int getSignerIdAsInt()
public String getDescription()
public boolean equals(Object obj)
Use this method to test whether a provided object is equal to this code signing key. This is true if and only if the signer IDs match, the public keys match, and the descriptions match.
obj - Object to test against this one for equality.public static CodeSigningKey get(Object obj)
obj - Object for which to retrieve the code signing information.public static CodeSigningKey get(int moduleHandle, int signerId)
moduleHandle - Handle to the code module containing the key information.signerID - ID for code signer.public static CodeSigningKey get(int moduleHandle, String signerId)
moduleHandle - Handle to the code module containing the key information.signerID - ID for code signer.public static int convert(String s)
s - String form of a signer ID.public static String convert(int i)
i - Integer form of a signer ID.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.