Package org.opensaml.saml.common.binding
Class BindingDescriptor
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
org.opensaml.saml.common.binding.BindingDescriptor
- All Implemented Interfaces:
Predicate<ProfileRequestContext>,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class BindingDescriptor
extends AbstractIdentifiableInitializableComponent
implements Predicate<ProfileRequestContext>
A class that describes a SAML binding and encapsulates information required for
profile actions to interact with them.
Configuration logic should expose the usable bindings to profile actions through instances of this class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Predicate<ProfileRequestContext>Predicate that must be true for this flow to be usable for a given request.private booleanIdentifies a binding that relies on SAML artifacts.private StringA short name for the binding.private booleanIndicates whether the binding provides a built-in signing mechanism.private booleanIdentifies a binding that is direct request/response between two parties (i.e., SOAP). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet a short/concise name for the binding.inthashCode()booleanGet whether the binding is artifact-based.booleanGet whether the binding provides a message signature capability.booleanGet whether the binding is synchronous (direct request/response, typically SOAP).voidsetActivationCondition(Predicate<ProfileRequestContext> condition) Set the activation condition in the form of aPredicatesuch that iff the condition evaluates to true should the corresponding binding be allowed/possible.voidsetArtifact(boolean flag) Set whether the binding is artifact-based.voidsetShortName(String name) Set a short/concise name for the binding.voidsetSignatureCapable(boolean flag) Set whether the binding provides a message signature capability.voidsetSynchronous(boolean flag) Set whether the binding is synchronous (direct request/response, typically SOAP).booleantest(ProfileRequestContext input) toString()Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
doInitialize, ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
activationCondition
Predicate that must be true for this flow to be usable for a given request. -
synchronous
private boolean synchronousIdentifies a binding that is direct request/response between two parties (i.e., SOAP). -
artifact
private boolean artifactIdentifies a binding that relies on SAML artifacts. -
signatureCapable
private boolean signatureCapableIndicates whether the binding provides a built-in signing mechanism. -
shortName
A short name for the binding.
-
-
Constructor Details
-
BindingDescriptor
public BindingDescriptor()Constructor.
-
-
Method Details
-
setActivationCondition
Set the activation condition in the form of aPredicatesuch that iff the condition evaluates to true should the corresponding binding be allowed/possible.- Parameters:
condition- predicate that controls activation of the binding
-
isSynchronous
public boolean isSynchronous()Get whether the binding is synchronous (direct request/response, typically SOAP).- Returns:
- true iff the binding is synchronous
-
setSynchronous
public void setSynchronous(boolean flag) Set whether the binding is synchronous (direct request/response, typically SOAP).- Parameters:
flag- flag to set
-
isArtifact
public boolean isArtifact()Get whether the binding is artifact-based.- Returns:
- true iff the binding is artifact-based
-
setArtifact
public void setArtifact(boolean flag) Set whether the binding is artifact-based.- Parameters:
flag- flag to set
-
isSignatureCapable
public boolean isSignatureCapable()Get whether the binding provides a message signature capability.- Returns:
- true iff the binding provides a message signature capability
-
setSignatureCapable
public void setSignatureCapable(boolean flag) Set whether the binding provides a message signature capability.- Parameters:
flag- flag to set
-
getShortName
Get a short/concise name for the binding.- Returns:
- the short name
-
setShortName
Set a short/concise name for the binding.- Parameters:
name- name to set
-
test
- Specified by:
testin interfacePredicate<ProfileRequestContext>
-
hashCode
public int hashCode() -
equals
-
toString
-