Asposecpplib
System::Security::Cryptography::HashAlgorithmName Struct Reference

String representing the name of a hash algorithm. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type. More...

Public Member Functions

 HashAlgorithmName ()=default
 
 HashAlgorithmName (const String &name)
 Constructor. More...
 
HashAlgorithmNameoperator= (const HashAlgorithmName &)=default
 
String get_Name () const
 Gets string representation of the algorithm name. More...
 
String ToString () const
 Gets string representation of the algorithm name. More...
 
bool Equals (const HashAlgorithmName &other) const
 
int GetHashCode () const
 
bool operator== (const HashAlgorithmName &other) const
 
bool operator!= (const HashAlgorithmName &other) const
 
bool IsNull () const
 
bool operator== (std::nullptr_t) const
 
bool operator!= (std::nullptr_t) const
 
bool operator< (std::nullptr_t) const
 
bool operator<= (std::nullptr_t) const
 
bool operator> (std::nullptr_t) const
 
bool operator>= (std::nullptr_t) const
 

Static Public Member Functions

static HashAlgorithmName get_MD5 ()
 Gets a HashAlgorithmName representing MD5. More...
 
static HashAlgorithmName get_SHA1 ()
 Gets a HashAlgorithmName representing SHA1. More...
 
static HashAlgorithmName get_SHA256 ()
 Gets a HashAlgorithmName representing SHA256. More...
 
static HashAlgorithmName get_SHA384 ()
 Gets a HashAlgorithmName representing SHA384. More...
 
static HashAlgorithmName get_SHA512 ()
 Gets a HashAlgorithmName representing SHA512. More...
 
static ASPOSECPP_SHARED_API bool TryFromOid (const String &oid_value, HashAlgorithmName &value)
 Try to create HashAlgorithmName from OID-value. More...
 
static ASPOSECPP_SHARED_API HashAlgorithmName FromOid (const String &oid_value)
 Create HashAlgorithmName from OID-value. More...
 
static const TypeInfoType ()
 Returns a TypeInfo object that represent TimeSpan structure. More...
 

Detailed Description

String representing the name of a hash algorithm. This type should be allocated on stack and passed to functions by value or by reference. Never use System::SmartPtr class to manage objects of this type.

Constructor & Destructor Documentation

◆ HashAlgorithmName() [1/2]

System::Security::Cryptography::HashAlgorithmName::HashAlgorithmName ( )
default

◆ HashAlgorithmName() [2/2]

System::Security::Cryptography::HashAlgorithmName::HashAlgorithmName ( const String name)
inline

Constructor.

Parameters
nameAlgorithm name.

Member Function Documentation

◆ Equals()

bool System::Security::Cryptography::HashAlgorithmName::Equals ( const HashAlgorithmName other) const
inline

◆ FromOid()

static ASPOSECPP_SHARED_API HashAlgorithmName System::Security::Cryptography::HashAlgorithmName::FromOid ( const String oid_value)
static

Create HashAlgorithmName from OID-value.

Parameters
oid_valueOID value.
Returns
Hash algorithm name.

◆ get_MD5()

static HashAlgorithmName System::Security::Cryptography::HashAlgorithmName::get_MD5 ( )
inlinestatic

Gets a HashAlgorithmName representing MD5.

◆ get_Name()

String System::Security::Cryptography::HashAlgorithmName::get_Name ( ) const
inline

Gets string representation of the algorithm name.

◆ get_SHA1()

static HashAlgorithmName System::Security::Cryptography::HashAlgorithmName::get_SHA1 ( )
inlinestatic

Gets a HashAlgorithmName representing SHA1.

◆ get_SHA256()

static HashAlgorithmName System::Security::Cryptography::HashAlgorithmName::get_SHA256 ( )
inlinestatic

Gets a HashAlgorithmName representing SHA256.

◆ get_SHA384()

static HashAlgorithmName System::Security::Cryptography::HashAlgorithmName::get_SHA384 ( )
inlinestatic

Gets a HashAlgorithmName representing SHA384.

◆ get_SHA512()

static HashAlgorithmName System::Security::Cryptography::HashAlgorithmName::get_SHA512 ( )
inlinestatic

Gets a HashAlgorithmName representing SHA512.

◆ GetHashCode()

int System::Security::Cryptography::HashAlgorithmName::GetHashCode ( ) const
inline

◆ IsNull()

bool System::Security::Cryptography::HashAlgorithmName::IsNull ( ) const
inline

◆ operator!=() [1/2]

bool System::Security::Cryptography::HashAlgorithmName::operator!= ( const HashAlgorithmName other) const
inline

◆ operator!=() [2/2]

bool System::Security::Cryptography::HashAlgorithmName::operator!= ( std::nullptr_t  ) const
inline

◆ operator<()

bool System::Security::Cryptography::HashAlgorithmName::operator< ( std::nullptr_t  ) const
inline

◆ operator<=()

bool System::Security::Cryptography::HashAlgorithmName::operator<= ( std::nullptr_t  ) const
inline

◆ operator=()

HashAlgorithmName& System::Security::Cryptography::HashAlgorithmName::operator= ( const HashAlgorithmName )
default

◆ operator==() [1/2]

bool System::Security::Cryptography::HashAlgorithmName::operator== ( const HashAlgorithmName other) const
inline

◆ operator==() [2/2]

bool System::Security::Cryptography::HashAlgorithmName::operator== ( std::nullptr_t  ) const
inline

◆ operator>()

bool System::Security::Cryptography::HashAlgorithmName::operator> ( std::nullptr_t  ) const
inline

◆ operator>=()

bool System::Security::Cryptography::HashAlgorithmName::operator>= ( std::nullptr_t  ) const
inline

◆ ToString()

String System::Security::Cryptography::HashAlgorithmName::ToString ( ) const
inline

Gets string representation of the algorithm name.

◆ TryFromOid()

static ASPOSECPP_SHARED_API bool System::Security::Cryptography::HashAlgorithmName::TryFromOid ( const String oid_value,
HashAlgorithmName value 
)
static

Try to create HashAlgorithmName from OID-value.

Parameters
oid_valueOID value.
valueOutput HashAlgorithmName.
Returns
true if specified OID is a valid hash algorithm, otherwise - false.

◆ Type()

static const TypeInfo& System::Security::Cryptography::HashAlgorithmName::Type ( )
inlinestatic

Returns a TypeInfo object that represent TimeSpan structure.