Class AbstractKeyStoreParam

java.lang.Object
org.zkoss.zkex.license.AbstractKeyStoreParam
All Implemented Interfaces:
KeyStoreParam
Direct Known Subclasses:
DefaultKeyStoreParam

public abstract class AbstractKeyStoreParam extends Object implements KeyStoreParam
This is a convenience class implementing the KeyStoreParam.getStream() method.
Version:
$Id$
Author:
Christian Schlichtherle
  • Constructor Details

    • AbstractKeyStoreParam

      protected AbstractKeyStoreParam(Class clazz, String resource)
      Creates a new instance of AbstractKeyStoreParam which will look up the given resource using the classloader of the given class when calling getStream().
  • Method Details

    • getStream

      public InputStream getStream() throws IOException
      Looks up the resource provided to the constructor using the classloader provided to the constructor and returns it as an InputStream.
      Specified by:
      getStream in interface KeyStoreParam
      Throws:
      IOException - If the key store cannot get opened.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Returns true if and only if these key store parameters seem to address the same key store entry as the given object.
      Overrides:
      equals in class Object