|
OSDP.Net 5.2.1
A .NET library for implementing the Open Supervised Device Protocol (OSDP)
|
Represents the server cryptogram data used in a secure communication sequence. More...
Public Member Functions | |
| ServerCryptogramData (byte[] serverCryptogram, bool isDefaultKey) | |
| override ReadOnlySpan< byte > | SecurityControlBlock () |
| override byte[] | BuildData () |
| Public Member Functions inherited from OSDP.Net.Model.PayloadData | |
| byte[] | BuildData () |
| Converts the payload into a byte array to be sent over the wire. | |
| ReadOnlySpan< byte > | SecurityControlBlock () |
| Retrieves the security control block for a specific command data type. | |
| virtual void | CustomMessageUpdate (Span< byte > messageBuffer) |
| Updates the message data before sending in the specified byte buffer. | |
Static Public Member Functions | |
| static ServerCryptogramData | ParseData (ReadOnlySpan< byte > data, ReadOnlySpan< byte > securityControlBlock) |
| Parses the message payload bytes. | |
Properties | |
| byte[] | ServerCryptogram [get] |
| Gets the cryptographic data provided by the server during a secure communication exchange. | |
| bool | IsDefaultKey [get] |
| Indicates whether the default encryption key is used for secure communications. | |
| override CommandType | CommandType [get] |
| override byte | Code [get] |
| override bool | IsSecurityInitialization [get] |
| Properties inherited from OSDP.Net.Model.CommandData.CommandData | |
| CommandType | CommandType [get] |
| Message command code. | |
| Properties inherited from OSDP.Net.Model.PayloadData | |
| byte | Code [get] |
| Gets the command or reply code byte value that represent the type of data. | |
| virtual bool | IsSecurityInitialization [get] |
| Gets a value indicating whether the security initialization is performed by this payload. | |
Additional Inherited Members | |
| Static Protected Member Functions inherited from OSDP.Net.Model.CommandData.CommandData | |
| static T[] | SplitData< T > (int size, Func< byte[], T > parseDataFunction, ReadOnlySpan< byte > payloadData) |
| Splits data into multiple elements of type T based on a specified size. | |
Represents the server cryptogram data used in a secure communication sequence.
Encapsulates information such as the server cryptogram and whether a default key is being used.
Definition at line 11 of file ServerCryptogramData.cs.
|
inline |
Definition at line 14 of file ServerCryptogramData.cs.
References IsDefaultKey, and ServerCryptogram.
Referenced by ParseData().
|
inline |
Definition at line 53 of file ServerCryptogramData.cs.
References ServerCryptogram.
|
inlinestatic |
Parses the message payload bytes.
| data | Message payload as bytes |
| securityControlBlock | Security control block as bytes |
Definition at line 64 of file ServerCryptogramData.cs.
References ServerCryptogramData().
|
inline |
Definition at line 42 of file ServerCryptogramData.cs.
References IsDefaultKey.
|
get |
Definition at line 36 of file ServerCryptogramData.cs.
|
get |
Definition at line 33 of file ServerCryptogramData.cs.
|
get |
Indicates whether the default encryption key is used for secure communications.
This property specifies if the default key is applied during the security initialization process.
Definition at line 30 of file ServerCryptogramData.cs.
Referenced by SecurityControlBlock(), and ServerCryptogramData().
|
get |
Definition at line 39 of file ServerCryptogramData.cs.
|
get |
Gets the cryptographic data provided by the server during a secure communication exchange.
This property holds the server's cryptogram used for encrypting or authenticating messages.
Definition at line 24 of file ServerCryptogramData.cs.
Referenced by BuildData(), and ServerCryptogramData().