* Returns the type of SAML Artifact that this appropriate for use with this Relying Party.
*/
public int getPreferredArtifactType();
+
+ /**
+ * Returns thhe default "TARGET" attribute to be used with the artifact profile or null if none is specified.
+ */
+ public String getDefaultTarget();
}
private boolean defaultToPOST = true;
private boolean wantsAssertionsSigned = false;
private int preferredArtifactType = 1;
+ private String defaultTarget;
public RelyingPartyImpl(Element partyConfig, IdPConfig globalConfig, Credentials credentials,
NameMapper nameMapper) throws ServiceProviderMapperException {
log.debug("Relying party does not want SAML Assertions to be signed.");
}
+ // Set a default target for use in artifact redirects
+ defaultTarget = ((Element) partyConfig).getAttribute("defaultTarget");
+
// Determine whether or not we are forcing attribute push on or off
String forcePush = ((Element) partyConfig).getAttribute("forceAttributePush");
String forceNoPush = ((Element) partyConfig).getAttribute("forceAttributeNoPush");
return preferredArtifactType;
}
+ public String getDefaultTarget() {
+
+ return defaultTarget;
+ }
+
/**
* Default identity provider implementation.
*
return wrapped.getPreferredArtifactType();
}
+
+ public String getDefaultTarget() {
+
+ return wrapped.getDefaultTarget();
+ }
}
/**
return wrapped.getPreferredArtifactType();
}
+
+ public String getDefaultTarget() {
+
+ return wrapped.getDefaultTarget();
+ }
}
/**
<xs:attribute name="defaultToPOSTProfile" type="xs:boolean" use="optional"/>
<xs:attribute name="defaultAuthMethod" type="xs:string" use="optional"/>
<xs:attribute name="preferredArtifactType" type="xs:integer" use="optional"/>
+ <xs:attribute name="defaultTarget" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>