Skip to main content

com.eruces.teadmin.TrustedServerAdmin

The TrustedServerAdmin class manages Trusted Servers.

Since: 3.1

© Pi Soft, 2018-2026 · Tricryption Engine 8.1

Inheritance

Static Public Attributes

TypeNameDescription
intPRINCIPAL_TRUST_RESTRICTIndicating deny access.
intPRINCIPAL_TRUST_EXPOSEIndicating allow access.

Public Member Functions

MemberDescription
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

ParameterDescription
streamTrustA stream representing information about a Trusted Server.
strFriendlyNameA string representing a Trusted Server's common name.
strDescriptionA string representing a Trusted Server's description.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).
teadmin.AdminExceptionif the Key Service refuses the operation, or an argument fails the check this method makes before sending the request.

Returns: Returns a TrustedServerInfo object.

void removeTrustedServer(TrustedServerInfo[] infos)

The removeTrustedServer method removes one or more Trusted Servers.

Parameters

ParameterDescription
infosAn array of TrustedServerInfo objects to be removed.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

void updateTrustedServer(TrustedServerInfo[] infos)

The removeTrustedServer method removes one or more Trusted Servers.

Parameters

ParameterDescription
infosAn array of TrustedServerInfo objects to be updated.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

TrustedServerInfo[] getTrustedServerList()

The getTrustedServerList method gets a list of Trusted Servers.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

Returns: Returns an array of Trusted Servers.

String getTrustInformation(String strURI)

The getTrustInformation method gets information about a Trusted Server.

Parameters

ParameterDescription
strURIA string representing the Trusted Server's name.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

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

ParameterDescription
streamCertA stream of a certificate authority certificate.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).
teadmin.AdminExceptionif the Key Service refuses the operation, or an argument fails the check this method makes before sending the request.

Returns: Returns a CertObjectInfo object.

CertObjectInfo getExternalCertificateInfo()

The getExternalCertificateInfo method gets a Trusted certificate authority's certificate.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

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

ParameterDescription
mA principal trust matrix element to be added.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

Returns: Returns a principal trust matrix element added.

PrincipalTrustMatrix[] addPrincipalTrustMatrix(PrincipalTrustMatrix[] m)

The addPrincipalTrustMatrix method adds an array of principal trust matrix elements.

Parameters

ParameterDescription
mAn array of pPrincipal trust matrix elements to be added.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

Returns: Returns an array of principal trust matrix elements added.

void updatePrincipalTrustMatrix(PrincipalTrustMatrix m)

The updatePrincipalTrustMatrix method updates a principal trust matrix element.

Parameters

ParameterDescription
mA PrincipalTrustMatrix object representing the element to be updated.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

void updatePrincipalTrustMatrix(PrincipalTrustMatrix[] m)

The updatePrincipalTrustMatrix method updates a principal trust matrix element.

Parameters

ParameterDescription
mAn array of PrincipalTrustMatrix objects to be added.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

void removePrincipalTrustMatrix(PrincipalTrustMatrix m)

The removePrincipalTrustMatrix method removes a principal trust matrix element.

Parameters

ParameterDescription
mA principal trust matrix element to be updated.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

PrincipalTrustMatrix[] getAllPrincipalTrustMatrices()

The getAllPrincipalTrustMatrices method returns all principal trust matrix elements.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

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

ParameterDescription
pidA long integer representing the principal ID.
tsidA long integer representing the trusted server ID.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

Returns: Returns a principal trust matrix element.

PrincipalTrustMatrix[] getPrincipalTrustMatricesByPrincipalId(long pid)

The getPrincipalTrustMatricesByPrincipalId method gets a principal trust matrix element with principal ID.

Parameters

ParameterDescription
pidA long integer representing the principal ID.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

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

ParameterDescription
pidAn array of principal IDs.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

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

ParameterDescription
tsidA long integer representing the trusted server ID.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

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

ParameterDescription
tsidAn array of trusted server IDs.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

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

ParameterDescription
mA principal trust matrix element with object ID filled.

Exceptions

ExceptionDescription
teagent.TEAgentExceptionif the request cannot be completed on the connection, or the Key Service returns an error for it (delivered as a TEServerException).

Returns: A PrincipalTrustMatrix object representing the principal trust matrix element.