/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: ResponseInfo.java,v 1.6 2009/06/17 03:09:13 exu Exp $
*
* Portions Copyrighted 2015 ForgeRock AS.
*/
/**
* This class stores information about the response made to
* the Service Provider.
*/
private boolean isLocalLogin = false;
/**
* Constructor creates the ResponseInfo.
* @param response the Response
* @param binding Profile binding used, one of the following values:
* <code>SAML2Constants.HTTP_POST</code>,
* <code>SAML2Constants.HTTP_ARTIFACT</code>,
* <code>SAML2Constants.PAOS</code>
* @param relayState relayState retrieved from ECP RelayState.
*/
String relayState) {
this.profileBinding = binding;
this.relayState = relayState;
}
/**
* Returns the <code>Response</code> object.
*
* @return the <code>Response</code> object.
*/
return resp;
}
/**
* Returns the relayState.
*
* @return the relayState.
*/
return relayState;
}
/**
* Returns the profile binding, one of the following values:
* <code>null</code>,
* <code>SAML2Constants.HTTP_POST</code>,
* <code>SAML2Constants.HTTP_ARTIFACT</code>,
* <code>SAML2Constants.PAOS</code>
*
* @return the binding.
*/
return profileBinding;
}
/**
* Sets the authn assertion
*
* @param assertion the authn assertion in the response
*/
}
/**
* Returns the authn assertion
*
* @return the authn assertion
*/
return assertion;
}
/**
* Sets the map of the attributes
*
* @param attrs the attribute map
*/
}
/**
* Returns the map of the atrributes
*
* @return the map of the atrributes
*/
return attrMap;
}
/**
* Sets the NameId
*
* @param id the NameId in the assertion
*/
}
/**
* Returns the NameID
*
* @return the NameID
*/
return nameId;
}
/**
* Sets SessionIndex.
*
* @param index SessionIndex of the session
*/
}
/**
* Returns the SessionIndex.
*
* @return the SessionIndex
*/
return sessionIndex;
}
/**
* Tells whether the user has been redirected to perform local login.
*
* @return <code>true</code> if the user was sent to perform local login.
*/
public boolean isLocalLogin() {
return isLocalLogin;
}
/**
* Sets the isLocalLogin flag.
*
* @param isLocalLogin The isLocalLogin flag.
*/
this.isLocalLogin = isLocalLogin;
}
}