BaseAuth

Based on Roger Upole's sspi demos.

Members

Functions

decrypt
auto decrypt(string data, string trailer)

Decrypt a previously encrypted string, returning the orignal data

encrypt
auto encrypt(string data)
Undocumented in source. Be warned that the author may not have intended to support it.
getNextSequenceNumber
auto getNextSequenceNumber()

Get the next sequence number for a transmission. Default implementation is to increment a counter

reset
void reset()

Reset everything to an unauthorized state

sign
string sign(string data)

sign a string suitable for transmission, returning the signature. Passing the data and signature to verify will determine if the data is unchanged.

verifySignature
void verifySignature(string data, string sig)

Verifies data and its signature. If verification fails, an sspi.error will be raised.

Variables

context
SecHandle context;
Undocumented in source.
credentials
CredHandle credentials;
Undocumented in source.
isAuthenticated
bool isAuthenticated;
Undocumented in source.
nextSequenceNumber
uint nextSequenceNumber;
Undocumented in source.

Meta