001: /**
002: * JOnAS: Java(TM) Open Application Server
003: * Copyright (C) 1999 Bull S.A.
004: * Contact: jonas-team@objectweb.org
005: *
006: * This library is free software; you can redistribute it and/or
007: *
008: * modify it under the terms of the GNU Lesser General Public
009: * License as published by the Free Software Foundation; either
010: * version 2.1 of the License, or 1any later version.
011: *
012: * This library is distributed in the hope that it will be useful,
013: * but WITHOUT ANY WARRANTY; without even the implied warranty of
014: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
015: * Lesser General Public License for more details.
016: *
017: * You should have received a copy of the GNU Lesser General Public
018: * License along with this library; if not, write to the Free Software
019: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
020: * USA
021: *
022: * Initial developer: Eric Hardesty
023: * --------------------------------------------------------------------------
024: * $Id: SecurityEntryDesc.java 5459 2004-09-17 22:33:33Z ehardesty $
025: * --------------------------------------------------------------------------
026: */package org.objectweb.jonas_rar.deployment.api;
027:
028: import java.io.Serializable;
029:
030: import org.objectweb.jonas_rar.deployment.xml.SecurityEntry;
031:
032: /**
033: * This class defines the implementation of the element security-entry
034: *
035: * @author Eric Hardesty
036: */
037:
038: public class SecurityEntryDesc implements Serializable {
039:
040: /**
041: * principalName
042: */
043: private String principalName = null;
044:
045: /**
046: * user
047: */
048: private String user = null;
049:
050: /**
051: * password
052: */
053: private String password = null;
054:
055: /**
056: * encrypted
057: */
058: private String encrypted = null;
059:
060: /**
061: * Constructor
062: */
063: public SecurityEntryDesc(SecurityEntry se) {
064: if (se != null) {
065: principalName = se.getPrincipalName();
066: user = se.getUser();
067: password = se.getPassword();
068: encrypted = se.getEncrypted();
069: }
070: }
071:
072: /**
073: * Gets the principalName
074: * @return the principalName
075: */
076: public String getPrincipalName() {
077: return principalName;
078: }
079:
080: /**
081: * Gets the user
082: * @return the user
083: */
084: public String getUser() {
085: return user;
086: }
087:
088: /**
089: * Gets the password
090: * @return the password
091: */
092: public String getPassword() {
093: return password;
094: }
095:
096: /**
097: * Gets the encrypted value
098: * @return the encrypted value
099: */
100: public String getEncypted() {
101: return encrypted;
102: }
103:
104: }
|