All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.schlichtherle.truezip.key.AbstractKeyManagerProvider Maven / Gradle / Ivy

Go to download

The file system driver family for ZIP and related archive file types. Add the JAR artifact of this module to the run time class path to make its file system drivers available for service location in the client API modules.

There is a newer version: 7.7.10
Show newest version
/*
 * Copyright (C) 2005-2013 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package de.schlichtherle.truezip.key;

import java.util.Map;
import java.util.ServiceConfigurationError;

/**
 * An abstract key manager provider.
 * 

* Implementations must be thread-safe. * * @author Christian Schlichtherle */ public abstract class AbstractKeyManagerProvider implements KeyManagerProvider { @Override @SuppressWarnings("unchecked") public final KeyManager get(final Class type) { final KeyManager manager = get().get(type); if (null == manager) throw new ServiceConfigurationError("No key manager available for " + type); return (KeyManager) manager; } /** * Returns an unmodifiable map of secret key classes to key managers. * Neither the keys nor the values of the returned map may be {@code null} * and subsequent calls must return a map which compares at least * {@link Map#equals(Object) equal} with the previously returned map. * * @return an unmodifiable map of secret key classes to key managers. * @since TrueZIP 7.2 */ public abstract Map, KeyManager> get(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy