001: /**
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */package org.apache.openejb.jee.jba;
017:
018: import javax.xml.bind.annotation.XmlAccessType;
019: import javax.xml.bind.annotation.XmlAccessorType;
020: import javax.xml.bind.annotation.XmlElement;
021: import javax.xml.bind.annotation.XmlRootElement;
022: import javax.xml.bind.annotation.XmlType;
023:
024: /**
025: *
026: */
027: @XmlAccessorType(XmlAccessType.FIELD)
028: @XmlType(name="",propOrder={"authMethod","realm","required"})
029: @XmlRootElement(name="as-context")
030: public class AsContext {
031:
032: @XmlElement(name="auth-method",required=true)
033: protected String authMethod;
034: @XmlElement(required=true)
035: protected String realm;
036: @XmlElement(required=true)
037: protected String required;
038:
039: /**
040: * Gets the value of the authMethod property.
041: *
042: * @return
043: * possible object is
044: * {@link String }
045: *
046: */
047: public String getAuthMethod() {
048: return authMethod;
049: }
050:
051: /**
052: * Sets the value of the authMethod property.
053: *
054: * @param value
055: * allowed object is
056: * {@link String }
057: *
058: */
059: public void setAuthMethod(String value) {
060: this .authMethod = value;
061: }
062:
063: /**
064: * Gets the value of the realm property.
065: *
066: * @return
067: * possible object is
068: * {@link String }
069: *
070: */
071: public String getRealm() {
072: return realm;
073: }
074:
075: /**
076: * Sets the value of the realm property.
077: *
078: * @param value
079: * allowed object is
080: * {@link String }
081: *
082: */
083: public void setRealm(String value) {
084: this .realm = value;
085: }
086:
087: /**
088: * Gets the value of the required property.
089: *
090: * @return
091: * possible object is
092: * {@link String }
093: *
094: */
095: public String getRequired() {
096: return required;
097: }
098:
099: /**
100: * Sets the value of the required property.
101: *
102: * @param value
103: * allowed object is
104: * {@link String }
105: *
106: */
107: public void setRequired(String value) {
108: this.required = value;
109: }
110:
111: }
|