Addition of Relay Server Outbound Enabler Certificate Files

Adds a new certificate file to be used by Relay Server outbound enablers.

Syntax

void addOutboundEnablerCertificateFile(java.lang.String fileName, byte[] certificateBlob, java.lang.Boolean overwrite) throws com.sybase.sup.admin.exception.SUPAdminException

Parameters

  • fileName – the file name to be used to save the certificate blob.
  • certificateBlob – the certificate blob.
  • overwrite – TRUE to overwrite existing file with the same name, FALSE to preserve the old one.

Returns

If successful, creates the specified certificate file. If unsuccessful, returns SUPAdminException .

Examples

  • Addition of an outbound enabler certificate file
    File file = new File("D:\\rsoe.cer");
    byte[] blob = new byte[(int)file.length()];
    new DataInputStream(new FileInputStream(file)).readFully(blob);
    supServerConf.addOutboundEnablerCertificateFile(file.getName(), blob, true);