![JAR search and dependency download from the Maven repository](/logo.png)
org.apache.ws.security.saml.ext.SAMLCallback Maven / Gradle / Ivy
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.apache.ws.security.saml.ext;
import org.apache.ws.security.saml.ext.bean.AttributeStatementBean;
import org.apache.ws.security.saml.ext.bean.AuthDecisionStatementBean;
import org.apache.ws.security.saml.ext.bean.AuthenticationStatementBean;
import org.apache.ws.security.saml.ext.bean.ConditionsBean;
import org.apache.ws.security.saml.ext.bean.SubjectBean;
import org.opensaml.common.SAMLVersion;
import javax.security.auth.callback.Callback;
import java.util.ArrayList;
import java.util.List;
/**
* Class SAMLCallback will be called by the AssertionWrapper
during the creation
* of SAML statements (authentication, attribute, and authz decision).
*
* Created on May 18, 2009
*/
public class SAMLCallback implements Callback {
/**
* The SAML Version of the Assertion to create
*/
private SAMLVersion samlVersion = SAMLVersion.VERSION_11;
/**
* SAML subject representation
*/
private SubjectBean subject;
/**
* The issuer of the Assertion
*/
private String issuer;
/**
* SAML Conditions representation
*/
private ConditionsBean conditions;
/**
* A list of AuthenticationStatementBean
values
*/
private List authenticationStatementData;
/**
* A list of AttributeStatementBean
values
*/
private List attributeStatementData;
/**
* A list of AuthDecisionStatementBean
values
*/
private List authDecisionStatementData;
/**
* Constructor SAMLCallback creates a new SAMLCallback instance.
*/
public SAMLCallback() {
authenticationStatementData = new ArrayList();
attributeStatementData = new ArrayList();
authDecisionStatementData = new ArrayList();
}
/**
* Method getAuthenticationStatementData returns the authenticationStatementData of this
* SAMLCallback object.
*
* @return the authenticationStatementData (type List) of
* this SAMLCallback object.
*/
public List getAuthenticationStatementData() {
return authenticationStatementData;
}
/**
* Method setAuthenticationStatementData sets the authenticationStatementData of this
* SAMLCallback object.
*
* @param authenticationStatementData the authenticationStatementData of this
* SAMLCallback object.
*/
public void setAuthenticationStatementData(
List authenticationStatementData
) {
this.authenticationStatementData = authenticationStatementData;
}
/**
* Method getAttributeStatementData returns the attributeStatementData of this
* SAMLCallback object.
*
* @return the attributeStatementData (type List) of this
* SAMLCallback object.
*/
public List getAttributeStatementData() {
return attributeStatementData;
}
/**
* Method setAttributeStatementData sets the attributeStatementData of this SAMLCallback object.
*
* @param attributeStatementData the attributeStatementData of this SAMLCallback object.
*/
public void setAttributeStatementData(List attributeStatementData) {
this.attributeStatementData = attributeStatementData;
}
/**
* Method getAuthDecisionStatementData returns the authDecisionStatementData of this
* SAMLCallback object.
*
* @return the authDecisionStatementData (type List) of this
* SAMLCallback object.
*/
public List getAuthDecisionStatementData() {
return authDecisionStatementData;
}
/**
* Method setAuthDecisionStatementData sets the authDecisionStatementData of this
* SAMLCallback object.
*
* @param authDecisionStatementData the authDecisionStatementData of this
* SAMLCallback object.
*/
public void setAuthDecisionStatementData(
List authDecisionStatementData
) {
this.authDecisionStatementData = authDecisionStatementData;
}
/**
* Method getSubject returns the subject of this SAMLCallback object.
*
* @return the subject (type SubjectBean) of this SAMLCallback object.
*/
public SubjectBean getSubject() {
return subject;
}
/**
* Method setSubject sets the subject of this SAMLCallback object.
*
* @param subject the subject of this SAMLCallback object.
*/
public void setSubject(SubjectBean subject) {
this.subject = subject;
}
/**
* Method getIssuer returns the issuer of this SAMLCallback object.
*
* @return the issuer of this SAMLCallback object.
*/
public String getIssuer() {
return issuer;
}
/**
* Method setIssuer sets the issuer of this SAMLCallback object.
*
* @param issuer the issuer of this SAMLCallback object.
*/
public void setIssuer(String issuer) {
this.issuer = issuer;
}
/**
* Method getConditions returns the conditions of this SAMLCallback object.
*
* @return the conditions (type ConditionsBean) of this SAMLCallback object.
*/
public ConditionsBean getConditions() {
return conditions;
}
/**
* Method setConditions sets the conditions of this SAMLCallback object.
*
* @param conditions the conditions of this SAMLCallback object.
*/
public void setConditions(ConditionsBean conditions) {
this.conditions = conditions;
}
/**
* Set the SAMLVersion of the assertion to create
* @param samlVersion the SAMLVersion of the assertion to create
*/
public void setSamlVersion(SAMLVersion samlVersion) {
this.samlVersion = samlVersion;
}
/**
* Get the SAMLVersion of the assertion to create
* @return the SAMLVersion of the assertion to create
*/
public SAMLVersion getSamlVersion() {
return samlVersion;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy