Click or drag to resize

SecurityUtils Class

Security utility methods.
Inheritance Hierarchy
SystemObject
  PDTec.IceNet.Sdk.UtilsSecurityUtils

Namespace:  PDTec.IceNet.Sdk.Utils
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public static class SecurityUtils

The SecurityUtils type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAesCreateKey
Creates an 256-bit AES key.
Public methodStatic memberAesCreateKeyString
Creates an 256-bit AES key.
Public methodStatic memberAesDecrypt(Byte, Byte)
Decrypts data using the 256-bit AES algorithm.
Public methodStatic memberAesDecrypt(Byte, String)
Decrypts data using the 256-bit AES algorithm.
Public methodStatic memberAesDecrypt(String, String)
Decrypts data using the 256-bit AES algorithm.
Public methodStatic memberAesDecrypt(Byte, SecurityUtilsBase64Variant, String)
Decrypts data using the 256-bit AES algorithm.
Public methodStatic memberAesDecrypt(String, SecurityUtilsBase64Variant, String)
Decrypts data using the 256-bit AES algorithm.
Public methodStatic memberAesEncrypt(Byte, Byte)
Encrypts data using the 256-bit AES algorithm.
Public methodStatic memberAesEncrypt(Byte, String)
Encrypts data using the 256-bit AES algorithm.
Public methodStatic memberAesEncrypt(String, String)
Encrypts data using the 256-bit AES algorithm.
Public methodStatic memberAesEncrypt(Byte, SecurityUtilsBase64Variant, String)
Encrypts data using the 256-bit AES algorithm.
Public methodStatic memberAesEncrypt(String, SecurityUtilsBase64Variant, String)
Encrypts data using the 256-bit AES algorithm.
Public methodStatic memberAesSign Obsolete.
Signs data using the 256-bit AES algorithm.
Public methodStatic memberAesVerify Obsolete.
Verifies a signature using the 256-bit AES algorithm.
Public methodStatic memberComputeSha1Hash(Byte)
Computes the SHA1 hash of a binary value.
Public methodStatic memberComputeSha1Hash(Stream)
Computes the SHA1 hash of an input stream.
Public methodStatic memberComputeSha256Hash
Computes the SHA256 hash of a binary value.
Public methodStatic memberCode exampleConfigureNetSecurity
Reads ServicePointManager.SecurityProtocol settings from configuration and applies them to the runtime.
Public methodStatic memberGetLicenseServerKey
Retrieves the server key of the local machine.
Public methodStatic memberHashPassword
Hashes the password and produces a random salt value.
Public methodStatic memberHmacCreateKey
Creates an 256-bit HMAC key.
Public methodStatic memberHmacCreateKeyString
Creates an 256-bit HMAC key.
Public methodStatic memberHmacEncryptAndSign(Byte, Byte)
Encrypts and signs data with AES/HMACSHA-256.
Public methodStatic memberHmacEncryptAndSign(Byte, String)
Encrypts and signs data with AES/HMACSHA-256.
Public methodStatic memberHmacEncryptAndSign(String, String)
Encrypts and signs data with AES/HMACSHA-256.
Public methodStatic memberHmacEncryptAndSign(Byte, SecurityUtilsBase64Variant, String)
Encrypts and signs data with AES/HMACSHA-256.
Public methodStatic memberHmacEncryptAndSign(String, SecurityUtilsBase64Variant, String)
Encrypts and signs data with AES/HMACSHA-256.
Public methodStatic memberHmacTryVerifyAndDecrypt(Byte, Byte, Byte)
Verifies a HMACSHA-256 signature and decrypts data.
Public methodStatic memberHmacTryVerifyAndDecrypt(Byte, String, String)
Verifies a HMACSHA-256 signature and decrypts data.
Public methodStatic memberHmacTryVerifyAndDecrypt(String, String, String)
Verifies a HMACSHA-256 signature and decrypts data.
Public methodStatic memberHmacTryVerifyAndDecrypt(Byte, SecurityUtilsBase64Variant, String, String)
Verifies a HMACSHA-256 signature and decrypts data.
Public methodStatic memberHmacTryVerifyAndDecrypt(String, SecurityUtilsBase64Variant, String, String)
Verifies a HMACSHA-256 signature and decrypts data.
Public methodStatic memberLog(String)
Adds a message to the security audit log. The message will appear with INFO priority.
Public methodStatic memberLog(String, Object)
Adds a message to the security audit log. The message will appear with INFO priority.
Public methodStatic memberLogCritical(String)
Adds a critical message to the security audit log. The message will appear with WARN priority.
Public methodStatic memberLogCritical(String, Object)
Adds a critical message to the security audit log. The message will appear with WARN priority.
Public methodStatic memberMatchLicenseServerKey
Matches a server key against a key from a license (file). Throws a LicenseException is the key does not match.
Public methodStatic memberRsaCreateDigitalSignature(String, Byte)
Creates a digital signature.
Public methodStatic memberRsaCreateDigitalSignature(String, XmlElement)
Creates a digital signature of an XML element.
Public methodStatic memberRsaCreateDigitalSignature(String, SecurityUtilsRsaSigningHash, Byte)
Creates a digital signature.
Public methodStatic memberRsaCreateDigitalSignature(String, SecurityUtilsRsaSigningHash, XmlElement)
Creates a digital signature of an XML element.
Public methodStatic memberRsaCreateDigitalSignature(String, SecurityUtilsRsaSigningHash, SecurityUtilsRsaPadding, Byte)
Creates a digital signature.
Public methodStatic memberRsaCreatePrivateKey(Boolean)
Creates a 2048-bit RSA key pair.
Public methodStatic memberRsaCreatePrivateKey(Int32, Boolean)
Creates a RSA key pair.
Public methodStatic memberRsaGetPublicKey
Retrieves a public RSA key out of a private RSA key pair.
Public methodStatic memberRsaVerifyDigitalSignature(String, Byte, String)
Verifies the digital signature.
Public methodStatic memberRsaVerifyDigitalSignature(String, XmlElement, String)
Verifies the digital signature of an XML element.
Public methodStatic memberRsaVerifyDigitalSignature(String, SecurityUtilsRsaSigningHash, Byte, String)
Verifies the digital signature.
Public methodStatic memberRsaVerifyDigitalSignature(String, SecurityUtilsRsaSigningHash, XmlElement, String)
Verifies the digital signature of an XML element.
Public methodStatic memberRsaVerifyDigitalSignature(String, SecurityUtilsRsaSigningHash, SecurityUtilsRsaPadding, Byte, String)
Verifies the digital signature.
Public methodStatic memberValidatePassword
Validates the password.
Top
See Also