FIM.Util.Crypto
Class KeyOrCertificateEnumeration
java.lang.Object
|
+--FIM.Util.FilterEnumeration
|
+--FIM.Util.Crypto.KeyOrCertificateEnumeration
- All Implemented Interfaces:
- Enumeration
- public class KeyOrCertificateEnumeration
- extends FilterEnumeration
An enumeration which returns only the names of key or certificate entries from a KeyStore
.
- Version:
- 1.0, 1.7.2000
- Author:
- Michael Sonntag
- See Also:
KeyStore
Method Summary |
protected boolean |
matchesFilter(Object toTest)
The function implementing the filtering function. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyOrCertificateEnumeration
public KeyOrCertificateEnumeration(boolean keys,
KeyStore store)
throws KeyStoreException
- Creates a new enumeration returning only names for key or certificate entries from a key store.
- Parameters:
keys
- if true
only key entried are returned, otherwise only certificate entriesstore
- the keystore to enumerate- Throws:
KeyStoreException
- if the undelying enumeration of the keystore failed
matchesFilter
protected boolean matchesFilter(Object toTest)
- The function implementing the filtering function.
- Overrides:
matchesFilter
in class FilterEnumeration
- Parameters:
totest
- the object to test if it matches the filter- Returns:
true
if the element should be returned; false
if this
element does not match the criteria and should be suppressed
Submit a bug
Copyright 2001,2002 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.