Skip to main content

com.eruces.teadmin.WindowsPrincipalInfo

The WindowsPrincipalInfo class represents a user authenticated by Kerberos (Windows) authentication protocols.

The authentication protocol is Kerberos. Formerly this was NTLM.

Inheritance

Public Member Functions

MemberDescription
WindowsPrincipalInfo()The WindowsPrincipalInfo constructor is the default class constructor.
WindowsPrincipalInfo(String strName)The WindowsPrincipalInfo constructor specifies a principal name.
WindowsPrincipalInfo(int nSystemID, long nPrincipalID)The WindowsPrincipalInfo constructor specifies a system ID and a principal ID.
String getPrincipalName()The getPrincipalName method gets a principal name.
String getUserName()The getUserName method gets a username.
void setUserName(String strName)The setUserName method sets a username.
boolean equals(Object anotherInfo)The equals method compares two principals.
String toString()The toString method converts WindowsPrincipalInfo object data to a string.

Member Function Documentation

WindowsPrincipalInfo()

The WindowsPrincipalInfo constructor is the default class constructor.

WindowsPrincipalInfo(String strName)

The WindowsPrincipalInfo constructor specifies a principal name.

Parameters

ParameterDescription
strNameA string representing a principal name.

WindowsPrincipalInfo(int nSystemID, long nPrincipalID)

The WindowsPrincipalInfo constructor specifies a system ID and a principal ID.

Parameters

ParameterDescription
nSystemIDAn integer representing a system ID.
nPrincipalIDA long integer representing a principal ID.

String getPrincipalName()

The getPrincipalName method gets a principal name.

Returns: Returns a string representing a principal name.

Remark: Specified by the getPrincipalName method in the PrincipalInfo class.

String getUserName()

The getUserName method gets a username.

Returns: Returns a string representing a username.

void setUserName(String strName)

The setUserName method sets a username.

Parameters

ParameterDescription
strNameA string representing a username.

boolean equals(Object anotherInfo)

The equals method compares two principals.

Parameters

ParameterDescription
anotherInfoA WindowsPrincipalInfo object to which the current WindowsPrincipalInfo object will be compared.

Returns: Returns a boolean value indicating whether the two principals are the same; True = principals are the same, False = principals are different. The principals are the same if their names or principal IDs are the same.

Remark: Specified by the equals method in the PrincipalInfo class.

String toString()

The toString method converts WindowsPrincipalInfo object data to a string.

Returns: Returns a string representing WindowsPrincipalInfo object data.