SilverStream
Application Server 3.5

com.sssw.rts.adminapi
Interface AgiAdmCertificate


public interface AgiAdmCertificate

Interface implemented by objects that represent server certificates. Certificate objects represent digital certificates stored on a SilverStream Server.

See Also:
AgiAdmServer

Field Summary
static String CERT_CA
          The certificate type of Server CA certificate.
static String CERT_SRV_DSA
          The certificate type of Server DSA certificate.
static String CERT_SRV_RSA
          The certificate type of Server RSA certificate.
 
Method Summary
 String getExpirationDate()
          Get the expiration date of the certificate.
 String getFingerprint()
          Get the fingerprint of the certificate.
 String getHolderCommonName()
          Get the common name of the certificate's holder.
 String getHolderCountry()
          Get the country of the certificate's holder.
 String getHolderEmailAddress()
          Get the email address of the certificate's holder.
 String getHolderLocality()
          Get the locality of the certificate's holder.
 String getHolderOrg()
          Get the organization name of the certificate's holder.
 String getHolderOrgUnit()
          Get the organizational unit name of the certificate's holder.
 String getHolderState()
          Get the state name of the certificate's holder.
 int getID()
          Get the ID of the certificate.
 String getIssuerCommonName()
          Get the common name of the issuer of the certificate.
 String getIssuerCountry()
          Get the country of the issuer of the certificate.
 String getIssuerEmailAddress()
          Get the email address of the issuer of the certificate.
 String getIssuerLocality()
          Get the locality of the issuer of the certificate.
 String getIssuerOrg()
          Get the organization name of the issuer of the certificate.
 String getIssuerOrgUnit()
          Get the organizational unit of the issuer of the certificate.
 String getIssuerState()
          Get the state name of the issuer of the certificate.
 String getStartDate()
          Get the start date of the certificate.
 String getType()
          Return the type of certificate.
 

Field Detail

CERT_SRV_RSA

public static final String CERT_SRV_RSA
The certificate type of Server RSA certificate. Usage: getType

CERT_SRV_DSA

public static final String CERT_SRV_DSA
The certificate type of Server DSA certificate. Usage: getType

CERT_CA

public static final String CERT_CA
The certificate type of Server CA certificate. Usage: getType
Method Detail

getType

public String getType()
Return the type of certificate.
Example:
		// Enumerate the server certificates
		Enumeration certs = server.getCertificates(
			AgiAdmServer.GET_CERTS_SRV_DSA | AgiAdmServer.GET_CERTS_SRV_RSA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String type = admcert.getType();
			if (AgiAdmCertificate.CERT_SRV_RSA.equals(type)) {
				// do something with the server RSA certificate
			}
			else {
				// do something with the server DSA certificate
			}
		}
 
See Also:
AgiAdmCertificate.CERT_SRV_RSA, AgiAdmCertificate.CERT_SRV_DSA, AgiAdmCertificate.CERT_CA

getHolderCountry

public String getHolderCountry()
Get the country of the certificate's holder.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String holderCountry = admcert.getHolderCountry();
			// do something with the holder country information
		}
 
See Also:
AgiAdmServer

getHolderState

public String getHolderState()
Get the state name of the certificate's holder.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String holderState = admcert.getHolderState();
			// do something with the holder state information
		}
 
See Also:
AgiAdmServer

getHolderLocality

public String getHolderLocality()
Get the locality of the certificate's holder.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String holderLocality = admcert.getHolderLocality();
			// do something with the holder locality information
		}

 
See Also:
AgiAdmServer

getHolderOrg

public String getHolderOrg()
Get the organization name of the certificate's holder.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String holderOrg = admcert.getHolderOrg();
			// do something with the holder organization information
		}

 
See Also:
AgiAdmServer

getHolderOrgUnit

public String getHolderOrgUnit()
Get the organizational unit name of the certificate's holder.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String holderOrgUnit = admcert.getHolderOrgUnit();
			// do something with the holder organization unit information
		}

 
See Also:
AgiAdmServer

getHolderCommonName

public String getHolderCommonName()
Get the common name of the certificate's holder.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String holderCommonName = admcert.getHolderCommonName();
			// do something with the holder common name information
		}
See Also:
AgiAdmServer

getHolderEmailAddress

public String getHolderEmailAddress()
Get the email address of the certificate's holder.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String holderEmail = admcert.getHolderEmailAddress();
			// do something with the holder email address information
		}

 
See Also:
AgiAdmServer

getIssuerCountry

public String getIssuerCountry()
Get the country of the issuer of the certificate.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String issuerCountry = admcert.getIssuerCountry();
			// do something with the issuer country information
		}

 
See Also:
AgiAdmServer

getIssuerState

public String getIssuerState()
Get the state name of the issuer of the certificate.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String issuerState = admcert.getIssuerState();
			// do something with the issuer state information
		}

 
See Also:
AgiAdmServer

getIssuerLocality

public String getIssuerLocality()
Get the locality of the issuer of the certificate.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String issuerLocality = admcert.getIssuerLocality();
			// do something with the issuer locality information
		}
 
See Also:
AgiAdmServer

getIssuerOrg

public String getIssuerOrg()
Get the organization name of the issuer of the certificate.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String issuerOrg = admcert.getIssuerOrg();
			// do something with the issuer organization information
		}

 
See Also:
AgiAdmServer

getIssuerOrgUnit

public String getIssuerOrgUnit()
Get the organizational unit of the issuer of the certificate.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String issuerOrgUnit = admcert.getIssuerOrgUnit();
			// do something with the issuer organizational unit information
		}

 
See Also:
AgiAdmServer

getIssuerCommonName

public String getIssuerCommonName()
Get the common name of the issuer of the certificate.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String issuerCommonName = admcert.getIssuerCommonName();
			// do something with the issuer common name information
		}
 
See Also:
AgiAdmServer

getIssuerEmailAddress

public String getIssuerEmailAddress()
Get the email address of the issuer of the certificate.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String issuerEmail = admcert.getIssuerEmailAddress();
			// do something with the issuer email address information
		}
 
See Also:
AgiAdmServer

getStartDate

public String getStartDate()
Get the start date of the certificate.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String startDate = admcert.getStartDate();
			// do something with the start date information
		}
 
See Also:
AgiAdmServer

getExpirationDate

public String getExpirationDate()
Get the expiration date of the certificate.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String expDate = admcert.getExpirationDate();
			// do something with the expiration date information
		}
 
See Also:
AgiAdmServer

getFingerprint

public String getFingerprint()
Get the fingerprint of the certificate.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			String fingerprint = admcert.getFingerprint();
			// do something with the fingerprint information
		}
 
See Also:
AgiAdmServer

getID

public int getID()
Get the ID of the certificate.
Example:
		Enumeration certs = server.getCertificates(AgiAdmServer.GET_CERTS_CA);
		while(certs.hasMoreElements()) {
			AgiAdmCertificate admcert = (AgiAdmCertificate)certs.nextElement();
			int id = admcert.getID();
			// do something with the ID
		}
 
See Also:
AgiAdmServer

SilverStream
Application Server 3.5