org.codehaus.plexus.redback.keys.jdo
Class JdoKeyManager
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.redback.keys.AbstractKeyManager
org.codehaus.plexus.redback.keys.jdo.JdoKeyManager
- All Implemented Interfaces:
- org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.redback.keys.KeyManager
public class JdoKeyManager
- extends org.codehaus.plexus.redback.keys.AbstractKeyManager
- implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
JdoKeyManager
- Version:
- $Id: JdoKeyManager.java 6465 2007-05-15 14:59:59Z jesse $
- Author:
- Joakim Erdfelt
| Fields inherited from interface org.codehaus.plexus.redback.keys.KeyManager |
ROLE |
|
Method Summary |
org.codehaus.plexus.redback.keys.AuthenticationKey |
addKey(org.codehaus.plexus.redback.keys.AuthenticationKey key)
|
org.codehaus.plexus.redback.keys.AuthenticationKey |
createKey(java.lang.String principal,
java.lang.String purpose,
int expirationMinutes)
|
void |
deleteKey(org.codehaus.plexus.redback.keys.AuthenticationKey authkey)
|
void |
deleteKey(java.lang.String key)
|
void |
eraseDatabase()
|
org.codehaus.plexus.redback.keys.AuthenticationKey |
findKey(java.lang.String key)
|
java.util.List |
getAllKeys()
|
java.lang.String |
getId()
|
org.codehaus.plexus.jdo.JdoFactory |
getJdoFactory()
|
void |
initialize()
|
| Methods inherited from class org.codehaus.plexus.redback.keys.AbstractKeyManager |
assertNotExpired, generateUUID, getNowGMT |
| Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdoKeyManager
public JdoKeyManager()
createKey
public org.codehaus.plexus.redback.keys.AuthenticationKey createKey(java.lang.String principal,
java.lang.String purpose,
int expirationMinutes)
throws org.codehaus.plexus.redback.keys.KeyManagerException
- Specified by:
createKey in interface org.codehaus.plexus.redback.keys.KeyManager
- Throws:
org.codehaus.plexus.redback.keys.KeyManagerException
addKey
public org.codehaus.plexus.redback.keys.AuthenticationKey addKey(org.codehaus.plexus.redback.keys.AuthenticationKey key)
- Specified by:
addKey in interface org.codehaus.plexus.redback.keys.KeyManager
eraseDatabase
public void eraseDatabase()
- Specified by:
eraseDatabase in interface org.codehaus.plexus.redback.keys.KeyManager
findKey
public org.codehaus.plexus.redback.keys.AuthenticationKey findKey(java.lang.String key)
throws org.codehaus.plexus.redback.keys.KeyNotFoundException,
org.codehaus.plexus.redback.keys.KeyManagerException
- Specified by:
findKey in interface org.codehaus.plexus.redback.keys.KeyManager
- Throws:
org.codehaus.plexus.redback.keys.KeyNotFoundException
org.codehaus.plexus.redback.keys.KeyManagerException
deleteKey
public void deleteKey(org.codehaus.plexus.redback.keys.AuthenticationKey authkey)
throws org.codehaus.plexus.redback.keys.KeyManagerException
- Specified by:
deleteKey in interface org.codehaus.plexus.redback.keys.KeyManager
- Throws:
org.codehaus.plexus.redback.keys.KeyManagerException
deleteKey
public void deleteKey(java.lang.String key)
throws org.codehaus.plexus.redback.keys.KeyManagerException
- Specified by:
deleteKey in interface org.codehaus.plexus.redback.keys.KeyManager
- Throws:
org.codehaus.plexus.redback.keys.KeyManagerException
getAllKeys
public java.util.List getAllKeys()
- Specified by:
getAllKeys in interface org.codehaus.plexus.redback.keys.KeyManager
initialize
public void initialize()
throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
- Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
getId
public java.lang.String getId()
- Specified by:
getId in interface org.codehaus.plexus.redback.keys.KeyManager
getJdoFactory
public org.codehaus.plexus.jdo.JdoFactory getJdoFactory()
Copyright © 2001-2007 Codehaus. All Rights Reserved.