com.eruces.teadmin.TrustedServerAdmin
The TrustedServerAdmin class manages Trusted Servers.
Inheritance
- Inherits com.eruces.teagent.IConnection
Static Public Attributes
| Type | Name | Description |
|---|---|---|
| int | PRINCIPAL_TRUST_RESTRICT | Indicating deny access. |
| int | PRINCIPAL_TRUST_EXPOSE | Indicating allow access. |
Public Member Functions
| Member | Description |
|---|---|
TrustedServerAdmin() | The TrustedServerAdmin constructor is the default class constructor. |
TrustedServerInfo addTrustedServer(InputStream streamTrust, String strFriendlyName, String strDescription) | The addTrustedServer method adds a Trusted Server to the system. |
void removeTrustedServer(TrustedServerInfo[] infos) | The removeTrustedServer method removes one or more Trusted Servers. |
void updateTrustedServer(TrustedServerInfo[] infos) | The removeTrustedServer method removes one or more Trusted Servers. |
TrustedServerInfo[] getTrustedServerList() | The getTrustedServerList method gets a list of Trusted Servers. |
String getTrustInformation(String strURI) | The getTrustInformation method gets information about a Trusted Server. |
CertObjectInfo acceptTrustCertificate(InputStream streamCert) | The acceptTrustCertificate method imports a Trusted Server's certificate authority certificate. |
CertObjectInfo getExternalCertificateInfo() | The getExternalCertificateInfo method gets a Trusted certificate authority's certificate. |
PrincipalTrustMatrix addPrincipalTrustMatrix(PrincipalTrustMatrix m) | The addPrincipalTrustMatrix method adds a principal trust matrix element. |
PrincipalTrustMatrix[] addPrincipalTrustMatrix(PrincipalTrustMatrix[] m) | The addPrincipalTrustMatrix method adds an array of principal trust matrix elements. |
void updatePrincipalTrustMatrix(PrincipalTrustMatrix m) | The updatePrincipalTrustMatrix method updates a principal trust matrix element. |
void updatePrincipalTrustMatrix(PrincipalTrustMatrix[] m) | The updatePrincipalTrustMatrix method updates a principal trust matrix element. |
void removePrincipalTrustMatrix(PrincipalTrustMatrix m) | The removePrincipalTrustMatrix method removes a principal trust matrix element. |
PrincipalTrustMatrix[] getAllPrincipalTrustMatrices() | The getAllPrincipalTrustMatrices method returns all principal trust matrix elements. |
PrincipalTrustMatrix getPrincipalTrustMatrix(long pid, long tsid) | The getPrincipalTrustMatrix method gets a principal trust matrix element with principal ID and trusted server ID. |
PrincipalTrustMatrix[] getPrincipalTrustMatricesByPrincipalId(long pid) | The getPrincipalTrustMatricesByPrincipalId method gets a principal trust matrix element with principal ID. |
PrincipalTrustMatrix[] getPrincipalTrustMatricesByPrincipalId(long[] pid) | The getPrincipalTrustMatricesByPrincipalId method gets a array of principal trust matrix elements with an array of principal IDs. |
PrincipalTrustMatrix[] getPrincipalTrustMatricesByTrustedServerId(long tsid) | The getPrincipalTrustMatricesByTrustedServerId method gets a array of principal trust matrix elements with a trusted server ID. |
PrincipalTrustMatrix[] getPrincipalTrustMatricesByTrustedServerId(long[] tsid) | The getPrincipalTrustMatricesByTrustedServerId method gets a array of principal trust matrix elements with an array of trusted server IDs. |
PrincipalTrustMatrix getPrincipalTrustMatrix(PrincipalTrustMatrix m) | The getPrincipalTrustMatrix method gets a principal trust matrix element with object ID. |
Member Function Documentation
TrustedServerAdmin()
The TrustedServerAdmin constructor is the default class constructor.
TrustedServerInfo addTrustedServer(InputStream streamTrust, String strFriendlyName, String strDescription)
The addTrustedServer method adds a Trusted Server to the system.
Parameters
| Parameter | Description |
|---|---|
streamTrust | A stream representing information about a Trusted Server. |
strFriendlyName | A string representing a Trusted Server's common name. |
strDescription | A string representing a Trusted Server's description. |
Returns: Returns a TrustedServerInfo object.
void removeTrustedServer(TrustedServerInfo[] infos)
The removeTrustedServer method removes one or more Trusted Servers.
Parameters
| Parameter | Description |
|---|---|
infos | An array of TrustedServerInfo objects to be removed. |
void updateTrustedServer(TrustedServerInfo[] infos)
The removeTrustedServer method removes one or more Trusted Servers.
Parameters
| Parameter | Description |
|---|---|
infos | An array of TrustedServerInfo objects to be updated. |
TrustedServerInfo[] getTrustedServerList()
The getTrustedServerList method gets a list of Trusted Servers.
Returns: Returns an array of Trusted Servers.
String getTrustInformation(String strURI)
The getTrustInformation method gets information about a Trusted Server.
Parameters
| Parameter | Description |
|---|---|
strURI | A string representing the Trusted Server's name. |
Returns: Returns a string representing Trusted Server profile information.
CertObjectInfo acceptTrustCertificate(InputStream streamCert)
The acceptTrustCertificate method imports a Trusted Server's certificate authority certificate.
Parameters
| Parameter | Description |
|---|---|
streamCert | A stream of a certificate authority certificate. |
Returns: Returns a CertObjectInfo object.
CertObjectInfo getExternalCertificateInfo()
The getExternalCertificateInfo method gets a Trusted certificate authority's certificate.
Returns: A CertObjectInfo object representing the Trusted certificate authority's certificate.
PrincipalTrustMatrix addPrincipalTrustMatrix(PrincipalTrustMatrix m)
The addPrincipalTrustMatrix method adds a principal trust matrix element.
Parameters
| Parameter | Description |
|---|---|
m | A principal trust matrix element to be added. |
Returns: Returns a principal trust matrix element added.
PrincipalTrustMatrix[] addPrincipalTrustMatrix(PrincipalTrustMatrix[] m)
The addPrincipalTrustMatrix method adds an array of principal trust matrix elements.
Parameters
| Parameter | Description |
|---|---|
m | An array of pPrincipal trust matrix elements to be added. |
Returns: Returns an array of principal trust matrix elements added.
void updatePrincipalTrustMatrix(PrincipalTrustMatrix m)
The updatePrincipalTrustMatrix method updates a principal trust matrix element.
Parameters
| Parameter | Description |
|---|---|
m | A PrincipalTrustMatrix object representing the element to be updated. |
void updatePrincipalTrustMatrix(PrincipalTrustMatrix[] m)
The updatePrincipalTrustMatrix method updates a principal trust matrix element.
Parameters
| Parameter | Description |
|---|---|
m | An array of PrincipalTrustMatrix objects to be added. |
void removePrincipalTrustMatrix(PrincipalTrustMatrix m)
The removePrincipalTrustMatrix method removes a principal trust matrix element.
Parameters
| Parameter | Description |
|---|---|
m | A principal trust matrix element to be updated. |
PrincipalTrustMatrix[] getAllPrincipalTrustMatrices()
The getAllPrincipalTrustMatrices method returns all principal trust matrix elements.
Returns: A PrincipalTrustMatrix array containing all principal trust matrix elements.
PrincipalTrustMatrix getPrincipalTrustMatrix(long pid, long tsid)
The getPrincipalTrustMatrix method gets a principal trust matrix element with principal ID and trusted server ID.
Parameters
| Parameter | Description |
|---|---|
pid | A long integer representing the principal ID. |
tsid | A long integer representing the trusted server ID. |
Returns: Returns a principal trust matrix element.
PrincipalTrustMatrix[] getPrincipalTrustMatricesByPrincipalId(long pid)
The getPrincipalTrustMatricesByPrincipalId method gets a principal trust matrix element with principal ID.
Parameters
| Parameter | Description |
|---|---|
pid | A long integer representing the principal ID. |
Returns: A PrincipalTrustMatrix array containing all principal trust matrix elements.
PrincipalTrustMatrix[] getPrincipalTrustMatricesByPrincipalId(long[] pid)
The getPrincipalTrustMatricesByPrincipalId method gets a array of principal trust matrix elements with an array of principal IDs.
Parameters
| Parameter | Description |
|---|---|
pid | An array of principal IDs. |
Returns: A PrincipalTrustMatrix array containing all principal trust matrix elements.
PrincipalTrustMatrix[] getPrincipalTrustMatricesByTrustedServerId(long tsid)
The getPrincipalTrustMatricesByTrustedServerId method gets a array of principal trust matrix elements with a trusted server ID.
Parameters
| Parameter | Description |
|---|---|
tsid | A long integer representing the trusted server ID. |
Returns: A PrincipalTrustMatrix array containing all principal trust matrix elements..
PrincipalTrustMatrix[] getPrincipalTrustMatricesByTrustedServerId(long[] tsid)
The getPrincipalTrustMatricesByTrustedServerId method gets a array of principal trust matrix elements with an array of trusted server IDs.
Parameters
| Parameter | Description |
|---|---|
tsid | An array of trusted server IDs. |
Returns: A PrincipalTrustMatrix array containing all principal trust matrix elements.
PrincipalTrustMatrix getPrincipalTrustMatrix(PrincipalTrustMatrix m)
The getPrincipalTrustMatrix method gets a principal trust matrix element with object ID.
Parameters
| Parameter | Description |
|---|---|
m | A principal trust matrix element with object ID filled. |
Returns: A PrincipalTrustMatrix object representing the principal trust matrix element.