1 /**
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20 package org.apache.ws.security.saml.ext;
21
22 import javax.security.auth.callback.CallbackHandler;
23
24 import org.opensaml.common.SAMLVersion;
25
26 /**
27 * Class SAMLParms is a parameter bean that is used to pass raw material from
28 * the <code>AssertionWrapper</code> to the SAML builders during statement
29 * creation.
30 * <p/>
31 * Created on May 18, 2009
32 */
33 public class SAMLParms {
34 private String issuer;
35 private SAMLVersion samlVersion = SAMLVersion.VERSION_11;
36 private CallbackHandler samlCallbackHandler;
37
38 /**
39 * Method getIssuer returns the issuer of this SAMLParms object.
40 *
41 * @return the issuer (type String) of this SAMLParms object.
42 */
43 public String getIssuer() {
44 return issuer;
45 }
46
47 /**
48 * Method setIssuer sets the issuer of this SAMLParms object.
49 *
50 * @param issuer the issuer of this SAMLParms object.
51 */
52 public void setIssuer(String issuer) {
53 this.issuer = issuer;
54 }
55
56 /**
57 * Get the SAML Version of the SAML Assertion to generate
58 * @return the SAML Version of the SAML Assertion to generate
59 */
60 public SAMLVersion getSAMLVersion() {
61 return samlVersion;
62 }
63
64 /**
65 * Set the SAML Version of the SAML Assertion to generate
66 * @param samlVersion the SAML Version of the SAML Assertion to generate
67 */
68 public void setSAMLVersion(SAMLVersion samlVersion) {
69 this.samlVersion = samlVersion;
70 }
71
72 /**
73 * Get the CallbackHandler instance used to populate the SAML Assertion content
74 * @return the CallbackHandler instance used to populate the SAML Assertion content
75 */
76 public CallbackHandler getCallbackHandler() {
77 return samlCallbackHandler;
78 }
79
80 /**
81 * Set the CallbackHandler instance used to populate the SAML Assertion content
82 * @param samlCallbackHandler the CallbackHandler instance used to populate the
83 * SAML Assertion content
84 */
85 public void setCallbackHandler(CallbackHandler samlCallbackHandler) {
86 this.samlCallbackHandler = samlCallbackHandler;
87 }
88
89 }