Agent System POND 1.2 (28.2.2002)

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

Constructor Summary
KeyOrCertificateEnumeration(boolean keys, KeyStore store)
          Creates a new enumeration returning only names for key or certificate entries from a key store.
 
Method Summary
protected  boolean matchesFilter(Object toTest)
          The function implementing the filtering function.
 
Methods inherited from class FIM.Util.FilterEnumeration
hasMoreElements, nextElement, setBaseEnumeration
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 entries
store - the keystore to enumerate
Throws:
KeyStoreException - if the undelying enumeration of the keystore failed
Method Detail

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

Agent System POND 1.2 (28.2.2002)

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.