Property | Type | Description | |
---|---|---|---|
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 |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
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 | ||
return | void |
protected CalculateSymmetricKeySizes ( ) : void | ||
return | void |
protected static CompareCertificates ( |
||
expected | ||
actual | ||
allowNull | bool | |
return | void |
protected ComputeKeys ( |
||
token | ||
return | void |
protected Decrypt ( ArraySegment |
||
dataToDecrypt | ArraySegment |
|
headerToCopy | ArraySegment |
|
receiverCertificate | ||
return | ArraySegment |
protected Decrypt ( |
||
token | ||
dataToDecrypt | ArraySegment |
|
useClientKeys | bool | |
return | void |
protected Encrypt ( ArraySegment |
||
dataToEncrypt | ArraySegment |
|
headerToCopy | ArraySegment |
|
receiverCertificate | ||
return | ArraySegment |
protected Encrypt ( |
||
token | ||
dataToEncrypt | ArraySegment |
|
useClientKeys | bool | |
return | void |
protected GetAsymmetricHeaderSize ( string securityPolicyUri, |
||
securityPolicyUri | string | |
senderCertificate | ||
return | int |
protected GetAsymmetricHeaderSize ( string securityPolicyUri, |
||
securityPolicyUri | string | |
senderCertificate | ||
senderCertificateSize | int | |
return | int |
protected GetAsymmetricSignatureSize ( |
||
senderCertificate | ||
return | int |
protected GetCipherTextBlockSize ( |
||
receiverCertificate | ||
return | int |
protected GetPlainTextBlockSize ( |
||
receiverCertificate | ||
return | int |
protected static GetThumbprintBytes ( string thumbprint ) : byte[] | ||
thumbprint | string | |
return | byte[] |
protected static GetThumbprintString ( byte thumbprint ) : string | ||
thumbprint | byte | |
return | string |
protected ReadAsymmetricMessage ( ArraySegment |
||
buffer | ArraySegment |
|
receiverCertificate | ||
channelId | uint | |
senderCertificate | ||
requestId | uint | |
sequenceNumber | uint | |
return | ArraySegment |
protected ReviseSecurityMode ( bool firstCall, MessageSecurityMode requestedMode ) : void | ||
firstCall | bool | |
requestedMode | MessageSecurityMode | |
return | void |
protected static Rsa_GetCipherTextBlockSize ( |
||
encryptingCertificate | ||
useOaep | bool | |
return | int |
protected static Rsa_GetPlainTextBlockSize ( |
||
encryptingCertificate | ||
useOaep | bool | |
return | int |
protected SetEndpointUrl ( string endpointUrl ) : bool | ||
endpointUrl | string | |
return | bool |
protected SetRenewedToken ( |
||
token | ||
return | void |
protected Sign ( ArraySegment |
||
dataToSign | ArraySegment |
|
senderCertificate | ||
return | byte[] |
protected Sign ( |
||
token | ||
dataToSign | ArraySegment |
|
useClientKeys | bool | |
return | byte[] |
protected ValidateNonce ( byte nonce ) : bool | ||
nonce | byte | |
return | bool |
protected Verify ( ArraySegment |
||
dataToVerify | ArraySegment |
|
signature | byte | |
senderCertificate | ||
return | bool |
protected Verify ( |
||
token | ||
signature | byte | |
dataToVerify | ArraySegment |
|
useClientKeys | bool | |
return | bool |
protected WriteAsymmetricMessage ( uint messageType, uint requestId, |
||
messageType | uint | |
requestId | uint | |
senderCertificate | ||
receiverCertificate | ||
messageBody | ArraySegment |
|
return | BufferCollection |
protected WriteAsymmetricMessageHeader ( BinaryEncoder encoder, uint messageType, uint secureChannelId, string securityPolicyUri, |
||
encoder | BinaryEncoder | |
messageType | uint | |
secureChannelId | uint | |
securityPolicyUri | string | |
senderCertificate | ||
receiverCertificate | ||
return | void |
protected WriteSymmetricMessage ( uint messageType, uint requestId, |
||
messageType | uint | |
requestId | uint | |
token | ||
messageBody | object | |
isRequest | bool | |
limitsExceeded | bool | |
return | BufferCollection |