Package org.zkoss.zkex.license
Class AbstractKeyStoreParam
- java.lang.Object
-
- org.zkoss.zkex.license.AbstractKeyStoreParam
-
- All Implemented Interfaces:
KeyStoreParam
- Direct Known Subclasses:
DefaultKeyStoreParam
public abstract class AbstractKeyStoreParam extends java.lang.Object implements KeyStoreParam
This is a convenience class implementing theKeyStoreParam.getStream()method.- Version:
- $Id$
- Author:
- Christian Schlichtherle
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractKeyStoreParam(java.lang.Class clazz, java.lang.String resource)Creates a new instance of AbstractKeyStoreParam which will look up the given resource using the classloader of the given class when callinggetStream().
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Returnstrueif and only if these key store parameters seem to address the same key store entry as the given object.java.io.InputStreamgetStream()Looks up the resource provided to the constructor using the classloader provided to the constructor and returns it as anInputStream.inthashCode()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.zkoss.zkex.license.KeyStoreParam
getAlias, getKeyPwd, getStorePwd
-
-
-
-
Constructor Detail
-
AbstractKeyStoreParam
protected AbstractKeyStoreParam(java.lang.Class clazz, java.lang.String resource)Creates a new instance of AbstractKeyStoreParam which will look up the given resource using the classloader of the given class when callinggetStream().
-
-
Method Detail
-
getStream
public java.io.InputStream getStream() throws java.io.IOExceptionLooks up the resource provided to the constructor using the classloader provided to the constructor and returns it as anInputStream.- Specified by:
getStreamin interfaceKeyStoreParam- Throws:
java.io.IOException- If the key store cannot get opened.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
Returnstrueif and only if these key store parameters seem to address the same key store entry as the given object.- Overrides:
equalsin classjava.lang.Object
-
-