Свойство | Тип | Описание | |
---|---|---|---|
GetMaxSenderCertificateSize | int | ||
ReadAsymmetricMessageHeader | void | ||
ReadSymmetricMessage | ArraySegment |
||
RsaPkcs15_GetSignatureLength | int | ||
RsaPkcs15_Sign | byte[] | ||
RsaPkcs15_Verify | bool | ||
Rsa_Decrypt | ArraySegment |
||
Rsa_Encrypt | ArraySegment |
||
SymmetricDecrypt | void | ||
SymmetricEncrypt | void | ||
SymmetricSign | byte[] | ||
SymmetricVerify | bool |
Метод | Описание | |
---|---|---|
ActivateToken ( |
Activates a new token.
|
|
CalculateSymmetricKeySizes ( ) : void |
Calculates the symmetric key sizes based on the current security policy.
|
|
CompareCertificates ( |
Compares two certificates.
|
|
ComputeKeys ( |
Computes the keys for a token.
|
|
CreateNonce ( ) : byte[] |
Creates a new nonce.
|
|
CreateToken ( ) : |
Creates a new token.
|
|
Decrypt ( ArraySegment |
Decrypts the buffer using asymmetric encryption. Start and count specify the block of data to be decrypted. The header specifies unencrypted data that must be copied to the output. |
|
Decrypt ( |
Decrypts the data in a buffer using symmetric encryption.
|
|
DiscardTokens ( ) : void |
Discards the tokens.
|
|
Encrypt ( ArraySegment |
Encrypts the buffer using asymmetric encryption. Start and count specify the block of data to be encrypted. The caller must ensure that count is a multiple of the input block size for the current cipher. The header specifies unencrypted data that must be copied to the output. |
|
Encrypt ( |
Decrypts the data in a buffer using symmetric encryption.
|
|
GetAsymmetricHeaderSize ( string securityPolicyUri, |
Calculates the size of the asymmetric security header.
|
|
GetAsymmetricHeaderSize ( string securityPolicyUri, |
||
GetAsymmetricSignatureSize ( |
Calculates the size of the footer with an asymmetric signature.
|
|
GetCipherTextBlockSize ( |
Returns the cipher text block size for key in the specified certificate.
|
|
GetNonceLength ( ) : uint |
Returns the length of the symmetric encryption key.
|
|
GetPlainTextBlockSize ( |
Returns the plain text block size for key in the specified certificate.
|
|
GetThumbprintBytes ( string thumbprint ) : byte[] |
Returns the thumbprint as a uppercase string.
|
|
GetThumbprintString ( byte thumbprint ) : string |
Returns the thumbprint as a uppercase string.
|
|
ReadAsymmetricMessage ( ArraySegment |
Processes an OpenSecureChannel request message.
|
|
ReviseSecurityMode ( bool firstCall, MessageSecurityMode requestedMode ) : void |
Checks if it is possible to revise the security mode.
|
|
Rsa_GetCipherTextBlockSize ( |
Return the ciphertext block size for RSA OAEP encryption.
|
|
Rsa_GetPlainTextBlockSize ( |
Return the plaintext block size for RSA OAEP encryption.
|
|
SetEndpointUrl ( string endpointUrl ) : bool |
Sets to endpoint according to the endpoint url.
|
|
SetRenewedToken ( |
Sets the renewed token
|
|
Sign ( ArraySegment |
Adds an asymmetric signature to the end of the buffer. Start and count specify the block of data to be signed. The padding and signature must be written to the stream wrapped by the encoder. |
|
Sign ( |
Returns the symmetric signature for the data.
|
|
ValidateNonce ( byte nonce ) : bool |
Validates the nonce.
|
|
Verify ( ArraySegment |
Verifies an asymmetric signature at the end of the buffer. Start and count specify the block of data including the signature and padding. The current security policy uri and sender certificate specify the size of the signature. This call also verifies that the padding is correct. |
|
Verify ( |
Returns the symmetric signature for the data.
|
|
WriteAsymmetricMessage ( uint messageType, uint requestId, |
Sends a OpenSecureChannel response.
|
|
WriteAsymmetricMessageHeader ( BinaryEncoder encoder, uint messageType, uint secureChannelId, string securityPolicyUri, |
Writes the asymmetric security header to the buffer.
|
|
WriteSymmetricMessage ( uint messageType, uint requestId, |
Secures the message using the security token.
|
Метод | Описание | |
---|---|---|
GetMaxSenderCertificateSize ( |
||
ReadAsymmetricMessageHeader ( BinaryDecoder decoder, |
||
ReadSymmetricMessage ( ArraySegment |
||
RsaPkcs15_GetSignatureLength ( |
Returns the length of a RSA PKCS#1 v1.5 signature.
|
|
RsaPkcs15_Sign ( ArraySegment |
Creates an RSA PKCS#1 v1.5 signature of a hash algorithm for the stream.
|
|
RsaPkcs15_Verify ( ArraySegment |
Verifies an RSA PKCS#1 v1.5 signature of a hash algorithm for the stream.
|
|
Rsa_Decrypt ( ArraySegment |
Decrypts the message using RSA PKCS#1 v1.5 encryption.
|
|
Rsa_Encrypt ( ArraySegment |
Encrypts the message using RSA PKCS#1 v1.5 encryption.
|
|
SymmetricDecrypt ( |
Decrypts a message using a symmetric algorithm.
|
|
SymmetricEncrypt ( |
Encrypts a message using a symmetric algorithm.
|
|
SymmetricSign ( |
Signs the message using SHA1 HMAC
|
|
SymmetricVerify ( |
Verifies a HMAC for a message.
|
protected ActivateToken ( |
||
token | ||
Результат | void |
protected CalculateSymmetricKeySizes ( ) : void | ||
Результат | void |
protected static CompareCertificates ( |
||
expected | ||
actual | ||
allowNull | bool | |
Результат | void |
protected ComputeKeys ( |
||
token | ||
Результат | void |
protected CreateToken ( ) : |
||
Результат |
protected Decrypt ( ArraySegment |
||
dataToDecrypt | ArraySegment |
|
headerToCopy | ArraySegment |
|
receiverCertificate | ||
Результат | ArraySegment |
protected Decrypt ( |
||
token | ||
dataToDecrypt | ArraySegment |
|
useClientKeys | bool | |
Результат | void |
protected Encrypt ( ArraySegment |
||
dataToEncrypt | ArraySegment |
|
headerToCopy | ArraySegment |
|
receiverCertificate | ||
Результат | ArraySegment |
protected Encrypt ( |
||
token | ||
dataToEncrypt | ArraySegment |
|
useClientKeys | bool | |
Результат | void |
protected GetAsymmetricHeaderSize ( string securityPolicyUri, |
||
securityPolicyUri | string | |
senderCertificate | ||
Результат | int |
protected GetAsymmetricHeaderSize ( string securityPolicyUri, |
||
securityPolicyUri | string | |
senderCertificate | ||
senderCertificateSize | int | |
Результат | int |
protected GetAsymmetricSignatureSize ( |
||
senderCertificate | ||
Результат | int |
protected GetCipherTextBlockSize ( |
||
receiverCertificate | ||
Результат | int |
protected GetPlainTextBlockSize ( |
||
receiverCertificate | ||
Результат | int |
protected static GetThumbprintBytes ( string thumbprint ) : byte[] | ||
thumbprint | string | |
Результат | byte[] |
protected static GetThumbprintString ( byte thumbprint ) : string | ||
thumbprint | byte | |
Результат | string |
protected ReadAsymmetricMessage ( ArraySegment |
||
buffer | ArraySegment |
|
receiverCertificate | ||
channelId | uint | |
senderCertificate | ||
requestId | uint | |
sequenceNumber | uint | |
Результат | ArraySegment |
protected ReviseSecurityMode ( bool firstCall, MessageSecurityMode requestedMode ) : void | ||
firstCall | bool | |
requestedMode | MessageSecurityMode | |
Результат | void |
protected static Rsa_GetCipherTextBlockSize ( |
||
encryptingCertificate | ||
useOaep | bool | |
Результат | int |
protected static Rsa_GetPlainTextBlockSize ( |
||
encryptingCertificate | ||
useOaep | bool | |
Результат | int |
protected SetEndpointUrl ( string endpointUrl ) : bool | ||
endpointUrl | string | |
Результат | bool |
protected SetRenewedToken ( |
||
token | ||
Результат | void |
protected Sign ( ArraySegment |
||
dataToSign | ArraySegment |
|
senderCertificate | ||
Результат | byte[] |
protected Sign ( |
||
token | ||
dataToSign | ArraySegment |
|
useClientKeys | bool | |
Результат | byte[] |
protected ValidateNonce ( byte nonce ) : bool | ||
nonce | byte | |
Результат | bool |
protected Verify ( ArraySegment |
||
dataToVerify | ArraySegment |
|
signature | byte | |
senderCertificate | ||
Результат | bool |
protected Verify ( |
||
token | ||
signature | byte | |
dataToVerify | ArraySegment |
|
useClientKeys | bool | |
Результат | bool |
protected WriteAsymmetricMessage ( uint messageType, uint requestId, |
||
messageType | uint | |
requestId | uint | |
senderCertificate | ||
receiverCertificate | ||
messageBody | ArraySegment |
|
Результат | BufferCollection |
protected WriteAsymmetricMessageHeader ( BinaryEncoder encoder, uint messageType, uint secureChannelId, string securityPolicyUri, |
||
encoder | BinaryEncoder | |
messageType | uint | |
secureChannelId | uint | |
securityPolicyUri | string | |
senderCertificate | ||
receiverCertificate | ||
Результат | void |
protected WriteSymmetricMessage ( uint messageType, uint requestId, |
||
messageType | uint | |
requestId | uint | |
token | ||
messageBody | object | |
isRequest | bool | |
limitsExceeded | bool | |
Результат | BufferCollection |