DOFProtocolFactorygetSecurityMode Method (Int16, DOFMarshalContext, Object, DOFPacket)OpenDOF Object Access Library
Returns the unmarshalled security mode layer for a protocol identifier.

Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
DOFSecurityMode getSecurityMode(
	short protocol,
	DOFMarshalContext context,
	Object state,
	DOFPacket packet
)

Parameters

protocol
Type: SystemInt16
The protocol identifier. Must be one of the protocol-specific constants.
context
Type: org.opendof.core.oalDOFMarshalContext
The context of the unmarshalling to be performed.
state
Type: SystemObject
The state in which the unmarshalling is done. This may affect the result.
packet
Type: org.opendof.core.oalDOFPacket
The buffer which contains the serialized form of the object. Must not be null.

Return Value

Type: DOFSecurityMode
The security mode layer for the given protocol identifier.
Exceptions

ExceptionCondition
DOFMarshalException If there are errors in the data or the buffer. This is an exception to the rule that non-RuntimeExceptions not be thrown from a constructor.
DOFMarshalException
Remarks

Returns the unmarshalled security mode layer for a protocol identifier.

Must treat returned values as singletons. That is, once this method has returned an instance of the protocol, it should always return that instance for the specified protocol.

See Also

Reference

org.opendof.core.internal_Renamed.protocol.Marshallable