Class ArtifactBinding
java.lang.Object
swiss.trustbroker.federation.xmlconfig.ArtifactBinding
- All Implemented Interfaces:
Serializable
Configuration for SAMl Artifact Binding.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionArtifactBinding(ArtifactBindingMode inboundMode, ArtifactBindingMode outboundMode, String sourceId, String sourceIdEncoded) Creates a newArtifactBindinginstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanMode for inbound Artifact binding.Mode for outbound Artifact binding.Default expected sourceId isOverriding sourceId with encoded value directly in case it is not calculated in the expected way.inthashCode()voidsetInboundMode(ArtifactBindingMode inboundMode) Mode for inbound Artifact binding.voidsetOutboundMode(ArtifactBindingMode outboundMode) Mode for outbound Artifact binding.voidsetSourceId(String sourceId) Default expected sourceId isvoidsetSourceIdEncoded(String sourceIdEncoded) Overriding sourceId with encoded value directly in case it is not calculated in the expected way.toString()booleanuseArtifactBinding(swiss.trustbroker.common.saml.dto.SamlBinding requestBinding, swiss.trustbroker.common.saml.dto.SamlBinding requestedResponseBinding) booleanvalidInboundBinding(swiss.trustbroker.common.saml.dto.SamlBinding actualBinding)
-
Constructor Details
-
ArtifactBinding
public ArtifactBinding() -
ArtifactBinding
public ArtifactBinding(ArtifactBindingMode inboundMode, ArtifactBindingMode outboundMode, String sourceId, String sourceIdEncoded) Creates a newArtifactBindinginstance.- Parameters:
inboundMode- Mode for inbound Artifact binding.outboundMode- Mode for outbound Artifact binding.sourceId- Default expected sourceId isHex(Sha1(ClaimsParty.id))
. Allow overriding this withHex(Sha1(sourceId))
.sourceIdEncoded- Overriding sourceId with encoded value directly in case it is not calculated in the expected way.
-
-
Method Details
-
useArtifactBinding
public boolean useArtifactBinding(swiss.trustbroker.common.saml.dto.SamlBinding requestBinding, swiss.trustbroker.common.saml.dto.SamlBinding requestedResponseBinding) -
validInboundBinding
public boolean validInboundBinding(swiss.trustbroker.common.saml.dto.SamlBinding actualBinding) -
builder
-
getInboundMode
Mode for inbound Artifact binding. -
getOutboundMode
Mode for outbound Artifact binding. -
getSourceId
Default expected sourceId isHex(Sha1(ClaimsParty.id))
. Allow overriding this withHex(Sha1(sourceId))
. -
getSourceIdEncoded
Overriding sourceId with encoded value directly in case it is not calculated in the expected way. -
setInboundMode
Mode for inbound Artifact binding. -
setOutboundMode
Mode for outbound Artifact binding. -
setSourceId
Default expected sourceId isHex(Sha1(ClaimsParty.id))
. Allow overriding this withHex(Sha1(sourceId))
. -
setSourceIdEncoded
Overriding sourceId with encoded value directly in case it is not calculated in the expected way. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-