Package org.opensaml.messaging.context
Class MessageChannelSecurityContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
org.opensaml.messaging.context.MessageChannelSecurityContext
- All Implemented Interfaces:
Iterable<BaseContext>
A subcontext which carries information about whether the message channel in use is considered
to have the active properties of confidentiality and integrity.
This data is typically used to determine whether additional application- or protocol-specific signing and/or encryption operations are necessary.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanMessage channel confidentiality flag.private booleanMessage channel integrity flag. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet whether message channel confidentiality is active.booleanGet whether message channel integrity is active.voidsetConfidentialityActive(boolean flag) Set whether message channel confidentiality is active.voidsetIntegrityActive(boolean flag) Set whether message channel integrity is active.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
confidentialityActive
private boolean confidentialityActiveMessage channel confidentiality flag. -
integrityActive
private boolean integrityActiveMessage channel integrity flag.
-
-
Constructor Details
-
MessageChannelSecurityContext
public MessageChannelSecurityContext()
-
-
Method Details
-
isConfidentialityActive
public boolean isConfidentialityActive()Get whether message channel confidentiality is active.- Returns:
- Returns the confidentialityActive.
-
setConfidentialityActive
public void setConfidentialityActive(boolean flag) Set whether message channel confidentiality is active.- Parameters:
flag- The confidentialityActive to set.
-
isIntegrityActive
public boolean isIntegrityActive()Get whether message channel integrity is active.- Returns:
- Returns the integrityActive.
-
setIntegrityActive
public void setIntegrityActive(boolean flag) Set whether message channel integrity is active.- Parameters:
flag- The integrityActive to set.
-