java.security.cert.CertStore
| Modifier and Type | Class and Description |
|---|---|
| private class | LDAPCertStoreImpl.
Private class encapsulating the actual LDAP operations and cache handling. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final byte[][] | |
| private static final String | |
| private int | |
| private int | |
| private CertificateFactory | cf
The CertificateFactory used to decode certificates from their binary stored form. |
| private boolean | communicationError
Flag indicating that communication error occurred. |
| private static final String | |
| private static final String | |
| private LdapContext | ctx
The JNDI directory context. |
| private static final Debug | |
| private static final int | |
| private static final int | |
| private static final Attributes | |
| private static final int | |
| private static final long | MAX_CRL_DOWNLOAD_SIZE
Maximum size for a CRL downloaded through an LDAPCertStoreImpl in bytes. |
| private boolean | prefetchCRLs
Flag indicating whether we should prefetch CRLs. |
| private static final String | |
| private static final String | |
| private int | |
| private static final String[] | |
| private static final String | USER_CERT
LDAP attribute identifiers. |
| private final Cache |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | createInitialDirContext(String
Server DNS name hosting LDAP service server, int Port at which server listens for requests port)Create InitialDirContext. |
| private Collection | |
| pack-priv synchronized Collection | Returns: aCollection of X509Certificates that
match the specified selectora xsel, String ldapDN)X509CertSelector used to select which
Certificates should be returned.Returns a |
| private Collection | |
| private Collection | Returns: a Collection of CRLs foundthe LDAP request used for this CRL fetch operation request,the attribute identifier id, X509CRLSelector a X509CRLSelector that the CRLs must match sel)Gets CRLs from an attribute id and location in the LDAP directory. |
| pack-priv synchronized Collection | Returns: ACollection of X509CRLs that
match the specified selectorA xsel, String ldapDN)X509CRLSelector used to select which
CRLs should be returned. Specify null
to return all CRLs.Returns a |
| private Collection | getMatchingCrossCerts(LDAPCertStoreImpl.
|
| ARL | back to summary |
|---|---|
| private static final String ARL | |
| BB0 | back to summary |
|---|---|
| private static final byte[][] BB0 | |
| CA_CERT | back to summary |
|---|---|
| private static final String CA_CERT | |
| cacheHits | back to summary |
|---|---|
| private int cacheHits | |
| cacheMisses | back to summary |
|---|---|
| private int cacheMisses | |
| cf | back to summary |
|---|---|
| private CertificateFactory cf The CertificateFactory used to decode certificates from their binary stored form. | |
| communicationError | back to summary |
|---|---|
| private boolean communicationError Flag indicating that communication error occurred. | |
| CRL | back to summary |
|---|---|
| private static final String CRL | |
| CROSS_CERT | back to summary |
|---|---|
| private static final String CROSS_CERT | |
| ctx | back to summary |
|---|---|
| private LdapContext ctx The JNDI directory context. | |
| debug | back to summary |
|---|---|
| private static final Debug debug | |
| DEFAULT_CACHE_LIFETIME | back to summary |
|---|---|
| private static final int DEFAULT_CACHE_LIFETIME | |
| DEFAULT_CACHE_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_CACHE_SIZE | |
| EMPTY_ATTRIBUTES | back to summary |
|---|---|
| private static final Attributes EMPTY_ATTRIBUTES | |
| LIFETIME | back to summary |
|---|---|
| private static final int LIFETIME | |
| MAX_CRL_DOWNLOAD_SIZE | back to summary |
|---|---|
| private static final long MAX_CRL_DOWNLOAD_SIZE Maximum size for a CRL downloaded through an LDAPCertStoreImpl in bytes. This can be controlled by the com.sun.security.crl.maxSize Security or System property. The System property, if set, overrides the Security property. The default size is 20MiB. | |
| prefetchCRLs | back to summary |
|---|---|
| private boolean prefetchCRLs Flag indicating whether we should prefetch CRLs. | |
| PROP_DISABLE_APP_RESOURCE_FILES | back to summary |
|---|---|
| private static final String PROP_DISABLE_APP_RESOURCE_FILES | |
| PROP_LIFETIME | back to summary |
|---|---|
| private static final String PROP_LIFETIME | |
| requests | back to summary |
|---|---|
| private int requests | |
| STRING0 | back to summary |
|---|---|
| private static final String[] STRING0 | |
| USER_CERT | back to summary |
|---|---|
| private static final String USER_CERT LDAP attribute identifiers. | |
| valueCache | back to summary |
|---|---|
| private final Cache<String, byte[][]> valueCache | |
| LDAPCertStoreImpl | back to summary |
|---|---|
| pack-priv LDAPCertStoreImpl(String serverName, int port) throws InvalidAlgorithmParameterException Creates a | |
| createInitialDirContext | back to summary |
|---|---|
| private void createInitialDirContext(String server, int port) throws InvalidAlgorithmParameterException Create InitialDirContext.
| |
| getCertificates | back to summary |
|---|---|
| private Collection | |
| getCertificates | back to summary |
|---|---|
| pack-priv synchronized Collection Returns a
It is not practical to search every entry in the LDAP database for
matching
| |
| getCertPairs | back to summary |
|---|---|
| private Collection | |
| getCRLs | back to summary |
|---|---|
| private Collection Gets CRLs from an attribute id and location in the LDAP directory. Returns a Collection containing only the CRLs that match the specified X509CRLSelector.
| |
| getCRLs | back to summary |
|---|---|
| pack-priv synchronized Collection Returns a
It is not practical to search every entry in the LDAP database for
matching
| |
| getMatchingCrossCerts | back to summary |
|---|---|
| private Collection | |
| Modifier and Type | Field and Description |
|---|---|
| private final LdapName | |
| private final List | |
| private Map |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| private void | |
| private static String | |
| private static byte[][] | |
| private Map | |
| pack-priv byte[][] |
| name | back to summary |
|---|---|
| private final LdapName name | |
| requestedAttributes | back to summary |
|---|---|
| private final List<String> requestedAttributes | |
| valueMap | back to summary |
|---|---|
| private Map<String, byte[][]> valueMap | |
| LDAPRequest | back to summary |
|---|---|
| pack-priv LDAPRequest(String name) throws CertStoreException | |
| addRequestedAttribute | back to summary |
|---|---|
| pack-priv void addRequestedAttribute(String attrId) | |
| cacheAttribute | back to summary |
|---|---|
| private void cacheAttribute(String attrId, byte[][] values) Add the values to the cache. | |
| checkName | back to summary |
|---|---|
| private static String checkName(String name) throws CertStoreException | |
| getAttributeValues | back to summary |
|---|---|
| private static byte[][] getAttributeValues(Attribute attr) throws NamingException Get the values for the given attribute. If the attribute is null or does not contain any values, a zero length byte array is returned. NOTE that it is assumed that all values are byte arrays. | |
| getValueMap | back to summary |
|---|---|
| private Map Get a map containing the values for this request. The first time this method is called on an object, the LDAP request is sent, the results parsed and added to a private map and also to the cache of this LDAPCertStore. Subsequent calls return the private map immediately. The map contains an entry for each requested attribute. The attribute name is the key, values are byte[][]. If there are no values for that attribute, values are byte[0][].
| |
| getValues | back to summary |
|---|---|
| pack-priv byte[][] getValues(String attrId) throws NamingException Gets one or more binary values from an attribute.
| |