Skip to main content

com.eruces.teadmin.TrustedServerAdmin

The TrustedServerAdmin class manages Trusted Servers.

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.

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.

void updateTrustedServer(TrustedServerInfo[] infos)

The removeTrustedServer method removes one or more Trusted Servers.

Parameters

ParameterDescription
infosAn 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

ParameterDescription
strURIA 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

ParameterDescription
streamCertA 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

ParameterDescription
mA 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

ParameterDescription
mAn 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

ParameterDescription
mA PrincipalTrustMatrix object representing the element to be updated.

void updatePrincipalTrustMatrix(PrincipalTrustMatrix[] m)

The updatePrincipalTrustMatrix method updates a principal trust matrix element.

Parameters

ParameterDescription
mAn array of PrincipalTrustMatrix objects to be added.

void removePrincipalTrustMatrix(PrincipalTrustMatrix m)

The removePrincipalTrustMatrix method removes a principal trust matrix element.

Parameters

ParameterDescription
mA 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

ParameterDescription
pidA long integer representing the principal ID.
tsidA 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

ParameterDescription
pidA 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

ParameterDescription
pidAn 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

ParameterDescription
tsidA 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

ParameterDescription
tsidAn 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

ParameterDescription
mA principal trust matrix element with object ID filled.

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