FSNameRegistrationResponse.java revision ccf9d4a5c6453fa9f8b839baeee25147865fbb7d
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd * Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * The contents of this file are subject to the terms
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * of the Common Development and Distribution License
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * (the License). You may not use this file except in
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * compliance with the License.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * You can obtain a copy of the License at
2e545ce2450a9953665f701bb05350f0d3f26275nd * See the License for the specific language governing
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen * permission and limitations under the License.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * When distributing Covered Code, include this CDDL
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * Header Notice in each file and include the License file
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen * If applicable, add the following below the CDDL Header,
3f08db06526d6901aa08c110b5bc7dde6bc39905nd * with the fields enclosed by brackets [] replaced by
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * your own identifying information:
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * "Portions Copyrighted [year] [name of copyright owner]"
3f08db06526d6901aa08c110b5bc7dde6bc39905nd * $Id: FSNameRegistrationResponse.java,v 1.3 2008/06/25 05:46:45 qcheng Exp $
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * Portions Copyrighted 2014-2016 ForgeRock AS.
a78048ccbdb6256da15e6b0e7e95355e480c2301ndimport com.sun.identity.federation.message.common.FSMsgException;
a78048ccbdb6256da15e6b0e7e95355e480c2301ndimport com.sun.identity.saml.common.SAMLResponderException;
a78048ccbdb6256da15e6b0e7e95355e480c2301ndimport com.sun.identity.saml.common.SAMLVersionMismatchException;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * This class has methods to create <code>NameRegistrationResponse</code>
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @supported.all.api
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @deprecated since 12.0.0
f4cbda69df0490c6deaacb8d04f103d200ddd183ndpublic class FSNameRegistrationResponse extends AbstractResponse {
f4cbda69df0490c6deaacb8d04f103d200ddd183nd * Default Constructor.
f4cbda69df0490c6deaacb8d04f103d200ddd183nd StatusCode statusCode = new StatusCode(IFSConstants.SAML_SUCCESS);
f4cbda69df0490c6deaacb8d04f103d200ddd183nd } catch(Exception e){
f4cbda69df0490c6deaacb8d04f103d200ddd183nd FSUtils.debug.error("FSNameRegistrationResponse.Constructor", e);
00964e7a8c1409d8229a4d8f02c56b2bf26b3596rbowen * Returns the value of <code>RelayState</code> attribute.
00964e7a8c1409d8229a4d8f02c56b2bf26b3596rbowen * @return the value of <code>RelayState</code> attribute.
00964e7a8c1409d8229a4d8f02c56b2bf26b3596rbowen * @see #setRelayState(String)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * Set the value of <code>RelayState</code> attribute.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @param relayState the value of <code>RelayState</code> attribute.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @see #getRelayState()
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * Returns the value of <code>id</code> attribute.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @return the value of <code>id</code> attribute.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @see #setID(String)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * Sets the value of <code>id</code> attribute.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @param id the value of <code>id</code> attribute.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @see #getID()
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * Returns the value of <code>ProviderID</code> attribute.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @return the value of <code>ProviderID</code> attribute.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @see #setProviderId(String).
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * Sets the value of providerID attribute.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @param providerId the value of providerID attribute.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @see #getProviderId()
0d0ba3a410038e179b695446bb149cce6264e0abnd * Returns signed <code>XML</code> representation of this
0d0ba3a410038e179b695446bb149cce6264e0abnd * @return xmlString signed <code>XML</code> representation of this
0d0ba3a410038e179b695446bb149cce6264e0abnd * Returns the signed <code>NameRegistrationResponse</code> string.
727872d18412fc021f03969b8641810d8896820bhumbedooh * @return signatureString the signed <code>NameRegistrationResponse</code>
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd * Constructor creates the <code>FSNameRegistrationResponse</code> object.
a78048ccbdb6256da15e6b0e7e95355e480c2301nd * @param responseID the value of <code>ResponseID</code> attribute.
} catch (ParseException e) {
signed = true;
public int getMinorVersion() {
return minorVersion;
return status;
private void parseMajorVersion(
} catch (NumberFormatException e) {
} catch (NumberFormatException e) {
throws FSMsgException {
return this.toXMLString(true, true);
throws FSMsgException {
if (includeHeader) {
if (includeNS) {
if (declareNS) {
+ responseID);
if (signed) {
if (signed) {
this.id, false);
} else if (minorVersion ==
this.getResponseID(), false);
signed = true;
}catch(Exception e){
new FSNameRegistrationResponse();
} catch (ParseException e){
return retNameRegistrationResponse;