Package org.zkoss.zkex.license
Class AbstractKeyStoreParam
java.lang.Object
org.zkoss.zkex.license.AbstractKeyStoreParam
- All Implemented Interfaces:
KeyStoreParam
- Direct Known Subclasses:
DefaultKeyStoreParam
This is a convenience class implementing the
KeyStoreParam.getStream() method.- Version:
- $Id$
- Author:
- Christian Schlichtherle
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractKeyStoreParam(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 callinggetStream(). -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif and only if these key store parameters seem to address the same key store entry as the given object.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, waitMethods inherited from interface org.zkoss.zkex.license.KeyStoreParam
getAlias, getKeyPwd, getStorePwd
-
Constructor Details
-
AbstractKeyStoreParam
Creates a new instance of AbstractKeyStoreParam which will look up the given resource using the classloader of the given class when callinggetStream().
-
-
Method Details
-
getStream
Looks up the resource provided to the constructor using the classloader provided to the constructor and returns it as anInputStream.- Specified by:
getStreamin interfaceKeyStoreParam- Throws:
IOException- If the key store cannot get opened.
-
hashCode
public int hashCode() -
equals
Returnstrueif and only if these key store parameters seem to address the same key store entry as the given object.
-