net.java.truecommons.key.spec.AbstractKeyManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truecommons-key-spec Show documentation
Show all versions of truecommons-key-spec Show documentation
Specifies a pluggable API for key management.
The newest version!
/*
* Copyright (C) 2005-2015 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package net.java.truecommons.key.spec;
import javax.annotation.concurrent.Immutable;
import net.java.truecommons.shed.UniqueObject;
/**
* An abstract key manager.
* When implementing a key manager, you should extend this class rather
* than directly implementing the interface in order to maintain binary
* backwards compatibility even if the interface is changed.
*
* Subclasses must be safe for multi-threading.
*
* @param The type of the keys.
* @since TrueCommons 2.2
* @author Christian Schlichtherle
*/
@Immutable
public abstract class AbstractKeyManager
extends UniqueObject implements KeyManager {
/**
* Returns a string representation of this object for logging and debugging
* purposes.
*/
@Override
public String toString() {
return String.format("%s", getClass().getName());
}
}