com.eruces.teadmin.TransportPrincipalInfo
The TransportPrincipalInfo class represents an X.509 principals.
Inheritance
- Inherits com.eruces.teadmin.PrincipalInfo
Public Member Functions
| Member | Description |
|---|---|
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
| Parameter | Description |
|---|---|
nPrincipalID | An integer representing a principal ID. |
TransportPrincipalInfo(String subject)
The TransportPrincipalInfo constructor specifies a given subject.
Parameters
| Parameter | Description |
|---|---|
subject | A string representing the transport principal subject. |
TransportPrincipalInfo(int nSystemID, long nPrincipalID)
The TransportPrincipalInfo constructor specifies a system ID and a principal ID.
Parameters
| Parameter | Description |
|---|---|
nSystemID | An integer representing a system ID. |
nPrincipalID | An 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
| Parameter | Description |
|---|---|
strSubject | A string representing the transport principal subject. |
boolean equals(Object anotherInfo)
The equals method compares two TransportPrincipalInfo objects.
Parameters
| Parameter | Description |
|---|---|
anotherInfo | An 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.