|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.crypto.certificate.CertificateProperties
net.rim.device.api.crypto.certificate.CertificateChainProperties
public class CertificateChainProperties
This class iterates through the certificates in a certificate chain and returns a bitfield that indicates many of the properties of the chain, such as the validity, the trust status, the revocation status, and the strength of the certificates in the chain.
Field Summary |
---|
Constructor Summary | ||
---|---|---|
|
CertificateChainProperties()
Creates a new CertificateChainProperties object. |
Method Summary | ||
---|---|---|
|
static long |
getCertificateChainProperties(Certificate[] chain,
KeyStore trustedKeyStore,
long date)
Returns the properties of the given certificate chain. |
|
static long |
getCertificateChainProperties(Certificate[] chain,
KeyStore trustedKeyStore,
long date,
CryptoSystemProperties cryptoSystemProperties)
Returns the properties of the given certificate chain. |
|
static long |
getCertificateChainProperties(Certificate[] chain,
KeyStore keyStore,
KeyStore trustedKeyStore,
long date)
Returns the properties of the given certificate chain. |
|
static long |
getCertificateChainProperties(Certificate[] chain,
KeyStore keyStore,
KeyStore trustedKeyStore,
long date,
CryptoSystemProperties cryptoSystemProperties)
Returns the properties of the given certificate chain. |
|
static long[] |
getCertificateChainProperties(Certificate[][] chains,
KeyStore trustedKeyStore,
long date)
Returns the properties of the given certificate chains. |
|
static long[] |
getCertificateChainProperties(Certificate[][] chains,
KeyStore trustedKeyStore,
long date,
CryptoSystemProperties cryptoSystemProperties)
Returns the properties of the given certificate chains. |
|
static long[] |
getCertificateChainProperties(Certificate[][] chains,
KeyStore keyStore,
KeyStore trustedKeyStore,
long date)
Returns the properties of the given certificate chains. |
|
static long[] |
getCertificateChainProperties(Certificate[][] chains,
KeyStore keyStore,
KeyStore trustedKeyStore,
long date,
CryptoSystemProperties cryptoSystemProperties)
Returns the properties of the given certificate chains. |
|
static int |
selectBestCertificateChain(long[] properties)
Finds a certificate chain that has properties matching one of a default set of property masks. |
|
static long |
selectBestCertificateChainProperties(long[] properties)
Returns the properties associated with the chain returned by a call to selectBestCertificateChain. |
|
static int[] |
selectCertificateChain(long[] properties,
long[] propertyMasks)
Finds a certificate chain that has properties matching one of a provided set of property masks. |
Methods inherited from class net.rim.device.api.crypto.certificate.CertificateProperties |
---|
select, selectBest, selectBestProperties |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CertificateChainProperties()
CertificateChainProperties
object.
This is the default constructor and is not used.
Method Detail |
---|
public static long selectBestCertificateChainProperties(long[] properties)
public static int selectBestCertificateChain(long[] properties)
properties
- an array of certificate chain properties
Otherwise, all of the chains have at least one error. The chains are checked for each of the following sets of properties:
STALE_CERTIFICATE_STATUS
UNKNOWN_CERTIFICATE_STATUS_PRESENT
and any previous properties
INCOMPLETE_CERTIFICATE_CHAIN
and any previous properties
UNTRUSTED_CERTIFICATE_CHAIN
and any previous properties
WEAK_CERTIFICATE_CHAIN
and any previous properties
INVALID_CERTIFICATE_PRESENT
and any previous properties
REVOKED_CERTIFICATE_STATUS_PRESENT
and any previous properties
public static int[] selectCertificateChain(long[] properties, long[] propertyMasks)
properties
- an array of certiticate chain propertiespropertyMasks
- an array of certificate chain property masks
If there is no chain matching any of the property masks, then the array (-1,-1) is returned.
public static long[] getCertificateChainProperties(Certificate[][] chains, KeyStore trustedKeyStore, long date)
chain
- an array of certificate chains.trustedKeyStore
- if any certifcate in the chain is a member of this key store, then the chain is considered trusted.date
- the date to use for certificate validity checking.public static long[] getCertificateChainProperties(Certificate[][] chains, KeyStore keyStore, KeyStore trustedKeyStore, long date)
chain
- an array of certificate chains.keyStore
- the KeyStore that may contain private keys for the certificates in the chain.trustedKeyStore
- if any certifcate in the chain is a member of this key store, then the chain is considered trusted.date
- the date to use for certificate validity checking.public static long[] getCertificateChainProperties(Certificate[][] chains, KeyStore trustedKeyStore, long date, CryptoSystemProperties cryptoSystemProperties)
chain
- an array of certificate chains.trustedKeyStore
- if any certifcate in the chain is a member of this key store, then the chain is considered trusted.date
- the date to use for certificate validity checking.public static long[] getCertificateChainProperties(Certificate[][] chains, KeyStore keyStore, KeyStore trustedKeyStore, long date, CryptoSystemProperties cryptoSystemProperties)
chain
- an array of certificate chains.keyStore
- the KeyStore that may contain private keys for the certificates in the chain.trustedKeyStore
- if any certifcate in the chain is a member of this key store, then the chain is considered trusted.date
- the date to use for certificate validity checking.cryptoSystemProperties
- a class to be used for certificate strength checking.public static long getCertificateChainProperties(Certificate[] chain, KeyStore trustedKeyStore, long date)
chain
- an array of certificates that compromise the chain.trustedKeyStore
- if any certifcate in the chain is a member of this key store, then the chain is considered trusted.date
- the date to use for certificate validity checking.public static long getCertificateChainProperties(Certificate[] chain, KeyStore keyStore, KeyStore trustedKeyStore, long date)
chain
- an array of certificates that compromise the chain.keyStore
- the KeyStore that may contain private keys for the certificates in the chain.trustedKeyStore
- if any certifcate in the chain is a member of this key store, then the chain is considered trusted.date
- the date to use for certificate validity checking.public static long getCertificateChainProperties(Certificate[] chain, KeyStore trustedKeyStore, long date, CryptoSystemProperties cryptoSystemProperties)
chain
- an array of certificates that compromise the chain.trustedKeyStore
- if any certifcate in the chain is a member of this key store, then the chain is considered trusted.date
- the date to use for certificate validity checking.cryptoSystemProperties
- a class to be used for certificate strength checking. If this is null, than the default
properties are used from the cryptosystem of the public key.public static long getCertificateChainProperties(Certificate[] chain, KeyStore keyStore, KeyStore trustedKeyStore, long date, CryptoSystemProperties cryptoSystemProperties)
chain
- an array of certificates that compromise the chain.keyStore
- the KeyStore that may contain private keys for the certificates in the chain.trustedKeyStore
- if any certifcate in the chain is a member of this key store, then the chain is considered trusted.date
- the date to use for certificate validity checking.cryptoSystemProperties
- a class to be used for certificate strength checking. If this is null, than the default
properties are used from the cryptosystem of the public key.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.