Skip to main content

tech.pisoft.teadmin.TransportPrincipalInfo

The TransportPrincipalInfo class represents an X.509 principals.

Since: 3.0

© Pi Soft, 2018-2026 · Tricryption Engine 8.1

Inheritance​

Public Member Functions​

MemberDescription
TransportPrincipalInfo()The TransportPrincipalInfo constructor is the default class constructor.
TransportPrincipalInfo(long nPrincipalID)The TransportPrincipalInfo constructor specifies a principal ID.
TransportPrincipalInfo(String subject)The TransportPrincipalInfo constructor specifies a given subject.
TransportPrincipalInfo(int nSystemID, long nPrincipalID)The TransportPrincipalInfo constructor specifies a system ID and a principal ID.
String getPrincipalName()The getPrincipalName method gets a principal name.
String getSubject()The getSubject method gets a certificate subject.
void setSubject(String strSubject)The setSubject method sets a certificate subject.
boolean equals(Object anotherInfo)The equals method compares two TransportPrincipalInfo objects.
String toString()The toString method converts the TransportPrincipalInfo object to a string.

Member Function Documentation​

TransportPrincipalInfo()​

The TransportPrincipalInfo constructor is the default class constructor.

TransportPrincipalInfo(long nPrincipalID)​

The TransportPrincipalInfo constructor specifies a principal ID.

Parameters

ParameterDescription
nPrincipalIDAn integer representing a principal ID.

TransportPrincipalInfo(String subject)​

The TransportPrincipalInfo constructor specifies a given subject.

Parameters

ParameterDescription
subjectA string representing the transport principal subject.

TransportPrincipalInfo(int nSystemID, long nPrincipalID)​

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

Parameters

ParameterDescription
nSystemIDAn integer representing a system ID.
nPrincipalIDAn integer representing a principal ID.

String getPrincipalName()​

The getPrincipalName method gets a principal name.

Returns: A string representing a principal name.

String getSubject()​

The getSubject method gets a certificate subject.

Returns: A string representing a certificate subject.

void setSubject(String strSubject)​

The setSubject method sets a certificate subject.

Parameters

ParameterDescription
strSubjectA string representing the transport principal subject.

boolean equals(Object anotherInfo)​

The equals method compares two TransportPrincipalInfo objects.

Parameters

ParameterDescription
anotherInfoAn TransportPrincipalInfo object to which the current TransportPrincipalInfo 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 two X.509 principals are the same if their certificate IDs or principal IDs are the same.

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

String toString()​

The toString method converts the TransportPrincipalInfo object to a string.

Returns: A string representing the TransportPrincipalInfo object.

Remark: Overrides the toString method in the PrincipalInfo class.