core.model
Class KeyStoreProtectionProxy
java.lang.Object
core.model.KeyStoreProtectionProxy
- All Implemented Interfaces:
- InvocationHandler
class KeyStoreProtectionProxy
- extends Object
- implements InvocationHandler
Copyright (c) 2006 Sebastian Erdweg
Copyright (c) 2006 Dominik Schulz
Copyright (c) 2006 Florian Lindner
Copyright (c) 2006 Betim Berjani
This file is part of FlexiCrypt.
FlexiCrypt is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
FlexiCrypt is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FlexiCrypt; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
- Author:
- Sebastian
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ks
private KeyStoreInterface ks
readOnly
private static boolean readOnly
proxy
private static KeyStoreInterface proxy
KeyStoreProtectionProxy
private KeyStoreProtectionProxy(String type)
throws KeyStoreException
- Throws:
KeyStoreException
getInstance
public static KeyStoreInterface getInstance(String type)
throws KeyStoreException
- Throws:
KeyStoreException
dropInstance
public static void dropInstance()
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Exception
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Exception
hasAccessPermission
private static boolean hasAccessPermission(Object proxy,
Method method,
Object[] args)
throws AccessControlException
- Throws:
AccessControlException
isReadOnly
public static boolean isReadOnly()
- Returns:
- Returns the readOnly.
setReadOnly
public static void setReadOnly(boolean readOnly)
- Parameters:
readOnly
- The readOnly to set.