001/* 002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 * 016 * Contributors: 017 * Nelson Silva <[email protected]> 018 */ 019package org.nuxeo.ecm.platform.auth.saml.key; 020 021import org.nuxeo.common.xmap.annotation.XNode; 022import org.nuxeo.common.xmap.annotation.XNodeMap; 023import org.nuxeo.common.xmap.annotation.XObject; 024 025import java.util.HashMap; 026import java.util.Map; 027 028@XObject("configuration") 029public class KeyDescriptor { 030 031 @XNode("keystoreFilePath") 032 protected String keystoreFilePath; 033 034 @XNode("keystorePassword") 035 protected String keystorePassword; 036 037 @XNode("signingKey") 038 protected String signingKey; 039 040 @XNode("encryptionKey") 041 protected String encryptionKey; 042 043 @XNode("tlsKey") 044 protected String tlsKey; 045 046 @XNodeMap(value = "passwords/password", key = "@key", type = HashMap.class, componentType = String.class) 047 protected Map<String, String> passwords; 048 049 public String getKeystoreFilePath() { 050 return keystoreFilePath; 051 } 052 053 public String getKeystorePassword() { 054 return keystorePassword; 055 } 056 057 public Map<String, String> getPasswords() { 058 return passwords; 059 } 060 061 public String getSigningKey() { 062 return signingKey; 063 } 064 065 public String getEncryptionKey() { 066 return encryptionKey; 067 } 068 069 public String getTlsKey() { 070 return tlsKey; 071 } 072}