Class KerberosSupplementalTicket
Class for Kerberos tickets that are included as claims and used as a supplemental token in an OAuth/OIDC protocol response.
public class KerberosSupplementalTicket
- Inheritance
-
KerberosSupplementalTicket
- Inherited Members
Constructors
KerberosSupplementalTicket()
Creates a new instance of KerberosSupplementalTicket class.
public KerberosSupplementalTicket()
KerberosSupplementalTicket(string)
Creates a new instance of KerberosSupplementalTicket class with error message.
public KerberosSupplementalTicket(string errorMessage)
Parameters
errorMessage
stringError message to be set.
Properties
ClientKey
Get or Sets the client key used to encrypt the client portion of the ticket. This is optional. This will be null if KeyType is null. This MUST be protected in the protocol response.
[JsonPropertyName("clientKey")]
public string ClientKey { get; set; }
Property Value
ClientName
Get or Sets the client name. Depending on the ticket, this can be either a UserPrincipalName or SamAccountName.
[JsonPropertyName("cn")]
public string ClientName { get; set; }
Property Value
ErrorMessage
Get or Sets the error message that server encountered when creating a ticket granting ticket.
[JsonPropertyName("error")]
public string ErrorMessage { get; set; }
Property Value
KerberosMessageBuffer
Get or Sets the Base64 encoded KERB_MESSAGE_BUFFER
[JsonPropertyName("messageBuffer")]
public string KerberosMessageBuffer { get; set; }
Property Value
KeyType
Get or Sets the client key type.This is optional.This will be null if ClientKey is null.
[JsonPropertyName("keyType")]
public KerberosKeyTypes KeyType { get; set; }
Property Value
Realm
Get or Sets the Kerberos realm/domain name.
[JsonPropertyName("realm")]
public string Realm { get; set; }
Property Value
ServicePrincipalName
Get or Sets the target service principal name (SPN).
[JsonPropertyName("sn")]
public string ServicePrincipalName { get; set; }
Property Value
Methods
ToString()
Creates a string representation of the data captured in the Kerberos supplemental ticket.
public override string ToString()
Returns
- string
A string containing the realm, service principal name, client name, and key type.