001/* 002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl-2.1.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * Nelson Silva <nelson.silva@inevo.pt> 016 */ 017package org.nuxeo.ecm.platform.auth.saml.key; 018 019import org.opensaml.xml.security.credential.Credential; 020import org.opensaml.xml.security.credential.CredentialResolver; 021 022import java.security.cert.X509Certificate; 023import java.util.Set; 024 025/** 026 * A manager for {@link Credential}s. 027 * 028 * @since 6.0 029 */ 030public interface KeyManager extends CredentialResolver { 031 032 Credential getCredential(String keyName); 033 034 Set<String> getAvailableCredentials(); 035 036 X509Certificate getCertificate(String alias); 037 038 Credential getSigningCredential(); 039 040 Credential getEncryptionCredential(); 041 042 Credential getTlsCredential(); 043}