Noble Connect
Add relays and punchthrough to Mirror or UNet
NobleConnect.Ice.IceCredentials Class Reference

Inherits NobleConnect.Stun.ShortTermCredentials.

Public Member Functions

 IceCredentials (string username, string password)
 
override bool ValidateMessageCredentials (Message m)
 
- Public Member Functions inherited from NobleConnect.Stun.ShortTermCredentials
 ShortTermCredentials (string username, string password)
 
override void CalculateHashKey ()
 The hashKey is a UTF-8 encoding of the password More...
 
override bool IsValid ()
 
override bool ValidateMessageCredentials (Message m)
 
override bool ValidateMessageIntegrity (Message m, byte[] rawBytes)
 
override void AddCredentialsToAttributes (List< Attribute > attributes)
 
- Public Member Functions inherited from NobleConnect.Stun.Credentials
virtual bool ValidateMessage (Message m, byte[] rawBytes)
 
virtual AttributeRaw GenerateMessageIntegrityAttribute (MessageHeader header, List< Attribute > attributes)
 
byte[] ComputeHash (BufferView bytesSoFar)
 Use HMACSHA1 along with the hash key and buffer data to generate the message integrity hash More...
 
byte[] ComputeHash (byte[] messageBytes, int offset=0, int length=-1)
 Use HMACSHA1 along with the hash key and buffer data to generate the message integrity hash More...
 

Additional Inherited Members

- Public Attributes inherited from NobleConnect.Stun.ShortTermCredentials
string password
 The password is set via configuratio on the Stun server and clients More...
 
- Public Attributes inherited from NobleConnect.Stun.Credentials
AttributeString username
 The username is set via configuration on the Stun server and clients More...
 
- Protected Attributes inherited from NobleConnect.Stun.Credentials
byte[] hashKey
 This is used as the key to an HMACSHA1 hash of the message contents that is sent as the Value of a MessageIntegrity attribute. More...
 

Constructor & Destructor Documentation

◆ IceCredentials()

NobleConnect.Ice.IceCredentials.IceCredentials ( string  username,
string  password 
)

Member Function Documentation

◆ ValidateMessageCredentials()

override bool NobleConnect.Ice.IceCredentials.ValidateMessageCredentials ( Message  m)
virtual