Class X400

java.lang.Object
com.isode.x400api.X400

public class X400 extends Object
Provides the X.400 class used to implement the Java bindings to the Isode X.400 API
  • Constructor Details

    • X400

      public X400()
  • Method Details

    • x400_msgnewfrombuffer

      public static int x400_msgnewfrombuffer(byte[] buf, Message message_obj)
      Generate a Message object from a message encoding.
      Parameters:
      buf - Encoding of Message
      message_obj - Message object
    • x400_msgnew

      public static int x400_msgnew(int msgtype, Message message_obj)
      Create new message
      Parameters:
      msgtype - Message type
      message_obj - Message object
    • x400_msgfree

      public static int x400_msgfree(Message message_obj)
      Free message
      Parameters:
      message_obj - Message object
    • x400_recipnew

      public static int x400_recipnew(int reciptype, Recip recip_obj)
      Create a new recipient object There are several different types for recipient object. Normal recipients can be specified separately for the envelope (i.e. controlling where the message actually goes) and the header which is part of the content. They can also be specified together. A separate type of recipient is the reported recipient which appears in a report content. - X400_RECIP_PRIMARY Primary recipient in header - X400_RECIP_CC Carbon copy recipient in header - X400_RECIP_BCC Blind copy recipient in header - X400_RECIP_REPLY Reply-recipient in header - X400_RECIP_ENVELOPE Actual recipient in envelope - X400_RECIP_REPORT Reported recipient in report content - X400_RECIP_INTENDED Originally intended recipient in report content - X400_ORIGINATOR Originator address in IPM header - X400_AUTH_ORIG Authorizing originator address in IPM header To set a given recipient in both envelope and header, add together the values, e.g. X400_RECIP_PRIMARY + X400_RECIP_ENVELOPE. The value X400_RECIP_STANDARD is a shorthand for this combination.
      Parameters:
      reciptype - Recipient type
      recip_obj - Recipient object to be returned from API
    • x400_bodypartnew

      public static int x400_bodypartnew(int bptype, BodyPart bodypart_obj)
      Create a new BodyPart object.
      Parameters:
      bptype - Bodypart type
      bodypart_obj - Bodypart object to be returned from API
    • x400_bodypartaddstrparam

      public static int x400_bodypartaddstrparam(BodyPart bp_obj, int paramtype, String value, int len)
      Add string-valued parameter to the body part
      Parameters:
      bp_obj - Bodypart object from MSBodypartNew
      paramtype - Type of parameter to be added
      value - String to be added as paramtype
      len - [IGNORED] length of string to be added (-1 for NULL terminated) Please note that the len parameter is now ignored
    • x400_bodypartaddbyteparam

      public static int x400_bodypartaddbyteparam(BodyPart bp_obj, int paramtype, byte[] value, int len)
      Add byte-valued parameter to the body part
      Parameters:
      bp_obj - Bodypart object from MSBodypartNew
      paramtype - Type of parameter to be added
      value - Byte array to be added as the value
      len - size of the byte array to be added
    • x400_bodypartaddintparam

      public static int x400_bodypartaddintparam(BodyPart bp_obj, int paramtype, int value)
      Add integer-valued parameter to the body part
      Parameters:
      bp_obj - Bodypart object from MSRecipNew
      paramtype - Type of parameter to be added
      value - Integer to be added as paramtype
    • x400_recipaddstrparam

      public static int x400_recipaddstrparam(Recip recip_obj, int paramtype, String value, int len)
      Add string-valued parameter to the recipient
      Parameters:
      recip_obj - Recipient object from MSRecipNew
      paramtype - Type of parameter to be added
      value - String to be added as paramtype
      len - [IGNORED] length of string to be added (-1 for NULL terminated) Please note that the len parameter is now ignored
    • x400_recipaddintparam

      public static int x400_recipaddintparam(Recip recip_obj, int paramtype, int value)
      Add integer-valued parameter to the recipient
      Parameters:
      recip_obj - Recipient object from MSRecipNew
      paramtype - Type of parameter to be added
      value - Integer to be added as paramtype
    • x400_msgaddstrparam

      public static int x400_msgaddstrparam(Message message_obj, int paramtype, String value, int len)
      Add string-valued parameter to the message
      Parameters:
      message_obj - Message object from MSMsgNew
      paramtype - Type of parameter to be added
      value - String to be added as paramtype
      len - [IGNORED] length of string to be added (-1 for NULL terminated) Please note that the len parameter is now ignored
    • x400_msgaddintparam

      public static int x400_msgaddintparam(Message message_obj, int paramtype, int value)
      Add integer-valued parameter to the message
      Parameters:
      message_obj - Message object from MSMsgNew
      paramtype - Type of parameter to be added
      value - integer to be added as paramtype
    • x400_msggetstrparam

      public static int x400_msggetstrparam(Message message_obj, int paramtype, StringBuffer value)
      Return a string-valued parameter from the message object
      Parameters:
      message_obj - Message object from MSMsgNew
      paramtype - Type of parameter to be returned
      value - String object into which to return the value
    • x400_msggetintparam

      public static int x400_msggetintparam(Message message_obj, int paramtype)
      Return a integer-valued parameter from the message object
      Parameters:
      message_obj - Message object from MSMsgNew
      paramtype - Type of parameter to be returned
    • x400_msggetrecip

      public static int x400_msggetrecip(Message message_obj, int type, int num, Recip recip_obj)
      Get recipient object from message
      Parameters:
      message_obj - Message object from MSMsgGet
      type - Type of recipient
      recip_obj - Recipient object to be returned
    • x400_recipget

      public static int x400_recipget(Message message_obj, int type, int num, Recip recip_obj)
      Get recipient object from message
      Parameters:
      message_obj - Message object from MsgGet
      type - Type of recipient
      recip_obj - Recipient object to be returned
    • x400_recipgetintparam

      public static int x400_recipgetintparam(Recip recip_obj, int paramtype)
      Return a integer-valued parameter from the recipient object
      Parameters:
      recip_obj - Recipient object from MSMsgGetRecip
      paramtype - Type of parameter to be returned
    • x400_recipgetstrparam

      public static int x400_recipgetstrparam(Recip recip_obj, int paramtype, StringBuffer value)
      Return a string-valued parameter from the recipient object
      Parameters:
      recip_obj - Recipient object from MSMsgGetRecip
      paramtype - Type of parameter to be returned
      value - String object into which to return the value
    • x400_msgaddrecip

      public static int x400_msgaddrecip(Message message_obj, int reciptype, Recip recip_obj)
      Add a recipient object to the message
      Parameters:
      message_obj - Message object
      reciptype - Recipient type
      recip_obj - Recipient object from API
    • x400_msgaddattachment

      public static int x400_msgaddattachment(Message message_obj, int paramtype, String value, int len, byte[] binarydata)
      Add an attachment to the message
      Parameters:
      message_obj - Message object
      paramtype - Type of attachment
      value - String value for attachment
      len - Length of attachment
      binarydata - data for binary attachments
    • x400_msgaddbodypart

      public static int x400_msgaddbodypart(Message message_obj, BodyPart bp_obj)
      Add a body part object to a message.
      Parameters:
      message_obj - Message object
      bp_obj - Bodypart object to add to the message
    • x400_addmessagebody

      public static int x400_addmessagebody(Message message_obj, Message fwd_message_obj)
      Add a message body object to a message. Deprecated use X400MsgAddMessageBodyWType instead.
      Parameters:
      message_obj - Message object
      fwd_message_obj - Message object to add as bodypart
    • x400_msgaddmessagebodywtype

      public static int x400_msgaddmessagebodywtype(Message message_obj, Message fw_message_obj, int type)
      Add a message body part object to a message
      Parameters:
      message_obj - Message object
      fw_message_obj - Message object to be added as BodyPart
      type - Bodypart type (X400_T_MESSAGE)
    • x400_bodypartgetintparam

      public static int x400_bodypartgetintparam(BodyPart bodypart_obj, int paramtype)
      Return a integer-valued parameter from the body part object
      Parameters:
      bodypart_obj - BodyPart object from X400msMsgGetBodypart
      paramtype - Type of parameter to be returned
    • x400_bodypartgetstrparam

      public static int x400_bodypartgetstrparam(BodyPart bodypart_obj, int paramtype, StringBuffer value, byte[] binarydata)
      Return a string-valued parameter from the body part object
      Parameters:
      bodypart_obj - BodyPart object from X400msMsgGetBodypart
      paramtype - Type of parameter to be returned
      value - String object into which to return the value
      binarydata - data for binary attachments
    • x400_msggetattachment

      public static int x400_msggetattachment(Message message_obj, int number, StringBuffer value, byte[] binarydata)
      Return data from a simple attachment Not all X.400 body part types can be returned from a message in this way. If the type is such that a X400Bodypart is needed, then the error X400_E_COMPLEX_BODY is returned. If the type is a forwarded message or returned IPM, then X400_E_MESSAGE_BODY is returned.
      Parameters:
      message_obj - Message object
      number - Bodypart number
    • x400_msggetbodypart

      public static int x400_msggetbodypart(Message message_obj, int number, BodyPart bp_obj)
      Return a pointer to a body part object.
      Parameters:
      message_obj - Message object
      number - Bodypart number
      bp_obj - BodyPart object returned
    • x400_msggetmessagebody

      public static int x400_msggetmessagebody(Message message_obj, int number, Message message_body_obj)
      Return a pointer to a body part object Returns a message from the specified body part
      Parameters:
      message_obj - Message object
      number - Bodypart number
      message_body_obj - Message object body part
    • x400_msgcountrecip

      public static int x400_msgcountrecip(Message message_obj, int type)
      Returns count of addresses of given type in message object
      Parameters:
      message_obj - Message object
      type - Type of address to count
    • x400_DLexphistnew

      public static int x400_DLexphistnew(Message message_obj, DLExpHist dleh_obj)
      Create a new X400DLExpHist object
      Parameters:
      message_obj - Message object
      dleh_obj - Distribution List Expansion History object
    • x400_DLexphistget

      public static int x400_DLexphistget(Message message_obj, int entry, DLExpHist dleh_obj)
      Create a new DL Expansion History object from the message object
      Parameters:
      message_obj - Message object
      entry - DL history object reference
      dleh_obj - Distribution List Expansion History object
    • x400_DLexphistdelete

      public static int x400_DLexphistdelete(DLExpHist dleh_obj)
      Delete the DL Expansion History object
      Parameters:
      dleh_obj - Distribution List Expansion History object
    • x400_DLgetstrparam

      public static int x400_DLgetstrparam(DLExpHist dleh_obj, int paramtype, StringBuffer value)
      Return a string parameter from the DL Expansion History object
      Parameters:
      dleh_obj - Message object
      paramtype - Type of parameter to be returned
      value - String object into which to return the value
    • x400_DLaddstrparam

      public static int x400_DLaddstrparam(DLExpHist dleh_obj, int paramtype, String value, int len)
      Add string-valued parameter to the X400DLExpHist object
      Parameters:
      dleh_obj - Message object
      paramtype - Type of parameter to be added
      value - String object to add the value
      len - String object to add the value
    • x400_traceinfonew

      public static int x400_traceinfonew(Message message_obj, Traceinfo traceinfo_obj, int type)
      Create a new Trace information object.
      Parameters:
      message_obj - Message object
      traceinfo_obj - Trace info object
    • x400_traceinfoget

      public static int x400_traceinfoget(Message message_obj, int entry, Traceinfo traceinfo_obj, int type)
      Get the Trace information object from a message
      Parameters:
      message_obj - Message object
      entry - Trace Info object reference
      traceinfo_obj - Trace Info object
      type - Trace Info type
    • x400_traceinfogetstrparam

      public static int x400_traceinfogetstrparam(Traceinfo traceinfo_obj, int paramtype, StringBuffer value)
      Get string parameter from Trace Information object
      Parameters:
      traceinfo_obj - Traceinfo object
      paramtype - Type of parameter to be returned
      value - String object into which to return the value
    • x400_traceinfogetintparam

      public static int x400_traceinfogetintparam(Traceinfo traceinfo_obj, int paramtype)
      Get int parameter from Trace Information object
      Parameters:
      traceinfo_obj - Traceinfo object
      paramtype - Type of parameter to be returned
    • x400_traceinfoaddstrparam

      public static int x400_traceinfoaddstrparam(Traceinfo traceinfo_obj, int paramtype, String value, int len)
      Add string-valued parameter to the X400TraceInfo object
      Parameters:
      traceinfo_obj - Traceinfo object
      paramtype - Type of parameter to be added
      value - String object to add the value
      len - String object to add the value
    • x400_traceinfoaddintparam

      public static int x400_traceinfoaddintparam(Traceinfo traceinfo_obj, int paramtype, int value)
      Set an integer value in a Trace Info object
      Parameters:
      traceinfo_obj - Message object from TraceInfoNew
      paramtype - Type of parameter to be added
      value - integer to be added as paramtype
    • x400_internaltraceinfonew

      public static int x400_internaltraceinfonew(Message message_obj, InternalTraceinfo internaltraceinfo_obj)
      Create a new Trace information object.
      Parameters:
      message_obj - Message object
      internaltraceinfo_obj - Internal Trace info object
    • x400_internaltraceinfoget

      public static int x400_internaltraceinfoget(Message message_obj, int entry, InternalTraceinfo internaltraceinfo_obj)
      Get the Trace information object from a message
      Parameters:
      message_obj - Message object
      entry - Trace Info object reference
      internaltraceinfo_obj - Trace Info object
    • x400_internaltraceinfogetstrparam

      public static int x400_internaltraceinfogetstrparam(InternalTraceinfo internaltraceinfo_obj, int paramtype, StringBuffer value)
      Get the InternalTrace information object from a message
      Parameters:
      internaltraceinfo_obj - Internaltraceinfo object
      paramtype - Type of parameter to be returned
      value - String object into which to return the value
    • x400_internaltraceinfogetintparam

      public static int x400_internaltraceinfogetintparam(InternalTraceinfo internaltraceinfo_obj, int paramtype)
      Get string parameter from Internal Trace Information object
      Parameters:
      internaltraceinfo_obj - Internaltraceinfo object
      paramtype - Type of parameter to be returned
    • x400_internaltraceinfoaddstrparam

      public static int x400_internaltraceinfoaddstrparam(InternalTraceinfo internaltraceinfo_obj, int paramtype, String value, int len)
      Add string-valued parameter to the Internal Trace info object
      Parameters:
      internaltraceinfo_obj - Internaltraceinfo object
      paramtype - Type of parameter to be added
      value - String object to add the value
      len - String object to add the value
    • x400_internaltraceinfoaddintparam

      public static int x400_internaltraceinfoaddintparam(InternalTraceinfo internaltraceinfo_obj, int paramtype, int value)
      Set an integer value in an Internal Trace Info object
      Parameters:
      internaltraceinfo_obj - Message object from InternaltraceinfoNew
      paramtype - Type of parameter to be added
      value - integer to be added as paramtype
    • x400_redihistnew

      public static int x400_redihistnew(Recip recip_obj, RediHist redihist_obj)
      Create a new Redirection History object
      Parameters:
      recip_obj - Recipient object
      redihist_obj - Redirection History object
    • x400_redihistget

      public static int x400_redihistget(Recip recip_obj, int entry, RediHist redihist_obj)
      Get the Redirection History object from a recipient
      Parameters:
      recip_obj - Recipient object
      entry - Redirection History object reference
      redihist_obj - Redirection History object
    • x400_redihistgetstrparam

      public static int x400_redihistgetstrparam(RediHist redihist_obj, int paramtype, StringBuffer value)
      Get string-valued parameter from the X400RediHist object
      Parameters:
      redihist_obj - Redirection History object
      paramtype - Type of parameter to be returned
      value - String object into which to return the value
    • x400_redihistgetintparam

      public static int x400_redihistgetintparam(RediHist redihist_obj, int paramtype)
      Get int-valued parameter from the X400RediHist object
      Parameters:
      redihist_obj - Redirection History object
      paramtype - Type of parameter to be returned
    • x400_redihistaddstrparam

      public static int x400_redihistaddstrparam(RediHist redihist_obj, int paramtype, String value, int len)
      Add string-valued parameter to the X400RediHist object
      Parameters:
      redihist_obj - Redirection History object
      paramtype - Type of parameter to be added
      value - String object to add the value
      len - String object to add the value
    • x400_redihistaddintparam

      public static int x400_redihistaddintparam(RediHist redihist_obj, int paramtype, int value)
      Set an integer value in a Redirection History object
      Parameters:
      redihist_obj - Message object from RediHistNew
      paramtype - Type of parameter to be added
      value - integer to be added as paramtype
    • x400_oranddlnew

      public static int x400_oranddlnew(Message message_obj, ORandDL oranddl_obj)
      Create new Originator and DL Expansion history object
      Parameters:
      message_obj - Message object
      oranddl_obj - ORandDL object
    • x400_oranddlget

      public static int x400_oranddlget(Message message_obj, int entry, ORandDL oranddl_obj)
      Get Originator and DL expansion history object
      Parameters:
      message_obj - Message object
      entry - ORandDL object reference
      oranddl_obj - ORandDL object
    • x400_oranddlgetstrparam

      public static int x400_oranddlgetstrparam(ORandDL oranddl_obj, int paramtype, StringBuffer value)
      Get string parameter from ACP127 Response object
      Parameters:
      oranddl_obj - ORandDL object
      paramtype - Type of parameter to be returned
      value - String object into which to return the value
    • x400_oranddladdstrparam

      public static int x400_oranddladdstrparam(ORandDL oranddl_obj, int paramtype, String value)
      Add string parameter for a Originator and DL Expansion History object
      Parameters:
      oranddl_obj - ORandDL object
      paramtype - Type of parameter to be added
      value - String object to add the value
    • x400_pssnew

      public static int x400_pssnew(Message message_obj, PSS pss_obj, int type)
      Create a Printable String Sequence object.
      Parameters:
      message_obj - Message object
      pss_obj - PSS object
      type - Printable String Syntax type. X400_S_HANDLING_INSTRUCTIONS / X400_S_MESSAGE_INSTRUCTIONS / X400_S_DIST_CODES_SIC
    • x400_pssget

      public static int x400_pssget(Message message_obj, int entry, PSS pss_obj, int type)
      Get the Printable String Sequence object from a message
      Parameters:
      message_obj - Message object
      entry - PSS object reference
      pss_obj - PSS object
      type - Printable String Syntax type. X400_S_HANDLING_INSTRUCTIONS / X400_S_MESSAGE_INSTRUCTIONS / X400_S_DIST_CODES_SIC
    • x400_pssgetstrparam

      public static int x400_pssgetstrparam(PSS pss_obj, StringBuffer value)
      Get string parameter from Printable String Sequence object
      Parameters:
      pss_obj - PSS object
      value - String object into which to return the value
    • x400_pssaddstrparam

      public static int x400_pssaddstrparam(PSS pss_obj, String value)
      Add string-valued parameter to the PSS info object
      Parameters:
      pss_obj - PSS object
      value - String object to add the value
    • x400_alinew

      public static int x400_alinew(Message message_obj, ALI ali_obj)
      Create an Address List Indicator object.
      Parameters:
      message_obj - Message object
      ali_obj - ALI object
    • x400_aliget

      public static int x400_aliget(Message message_obj, int entry, ALI ali_obj)
      Get the Address List Indicator information object from a message
      Parameters:
      message_obj - Message object
      entry - ALI object reference
      ali_obj - ALI object
    • x400_aligetstrparam

      public static int x400_aligetstrparam(ALI ali_obj, int paramtype, StringBuffer value)
      Get string parameter from Address List Indicator object
      Parameters:
      ali_obj - ALI object
      paramtype - Type of parameter to be fetched
      value - String object into which to return the value
    • x400_aliaddstrparam

      public static int x400_aliaddstrparam(ALI ali_obj, int paramtype, String value)
      Add string-valued parameter to the ALI info object
      Parameters:
      ali_obj - ALI object
      paramtype - Type of parameter to be added
      value - String object to add the value
    • x400_aliaddintparam

      public static int x400_aliaddintparam(ALI ali_obj, int paramtype, int value)
      Add int-valued parameter to the ALI info object
      Parameters:
      ali_obj - Message object from X400ALINew
      paramtype - Type of parameter to be added
      value - integer to be added as paramtype
    • x400_aligetintparam

      public static int x400_aligetintparam(ALI ali_obj, int paramtype)
      Get string parameter from Address List Indicator object
      Parameters:
      ali_obj - ALI object
      paramtype - Type of parameter to be returned
    • x400_otherrecipnew

      public static int x400_otherrecipnew(Message message_obj, OtherRecip otherrecip_obj)
      Create a new P772 Other Recipient object for a message object
      Parameters:
      message_obj - Message object
      otherrecip_obj - OtherRecip object
    • x400_otherrecipget

      public static int x400_otherrecipget(Message message_obj, int entry, OtherRecip otherrecip_obj)
      Get a new P772 Other Recipient object for a message object
      Parameters:
      message_obj - Message object
      entry - OtherRecip object reference
      otherrecip_obj - OtherRecip object
    • x400_otherrecipgetstrparam

      public static int x400_otherrecipgetstrparam(OtherRecip otherrecip_obj, StringBuffer value)
      Get string parameter from Other Recipient object
      Parameters:
      otherrecip_obj - OtherRecip object
      value - String object into which to return the value
    • x400_otherrecipaddstrparam

      public static int x400_otherrecipaddstrparam(OtherRecip otherrecip_obj, String value)
      Set string parameter from Other Recipient object
      Parameters:
      otherrecip_obj - OtherRecip object
      value - String object to add the value
    • x400_otherrecipaddintparam

      public static int x400_otherrecipaddintparam(OtherRecip otherrecip_obj, int value)
      Set int parameter from Other Recipient object
      Parameters:
      otherrecip_obj - Message object from X400OtherRecipNew
      value - integer to be added
    • x400_otherrecipgetintparam

      public static int x400_otherrecipgetintparam(OtherRecip otherrecip_obj)
      Get int parameter from Other Recipient object
      Parameters:
      otherrecip_obj - otherrecip object
    • x400_acp127respnew

      public static int x400_acp127respnew(Message msg_obj, ACP127Resp acp127resp_obj)
      Create a P772 ACP127 Response object.
      Parameters:
      msg_obj - Message object
      acp127resp_obj - ACP127Resp object
    • x400_acp127respget

      public static int x400_acp127respget(Message msg_obj, ACP127Resp acp127resp_obj)
      Get the ACP127 Response object from a recipient
      Parameters:
      msg_obj - Recipient object
      acp127resp_obj - ACP127Resp object
    • x400_acp127respgetstrparam

      public static int x400_acp127respgetstrparam(ACP127Resp acp127resp_obj, int paramtype, StringBuffer value)
      Get string parameter from ACP127 Response object
      Parameters:
      acp127resp_obj - ACP127Resp object
      paramtype - Type of parameter to be returned
      value - String object into which to return the value
    • x400_acp127addstrparam

      public static int x400_acp127addstrparam(ACP127Resp acp127resp_obj, int paramtype, String value)
      Set string parameter from ACP127 Response object
      Parameters:
      acp127resp_obj - ACP127Resp object
      paramtype - Type of parameter to be added
      value - String object to add the value
    • x400_acp127respaddintparam

      public static int x400_acp127respaddintparam(ACP127Resp acp127resp_obj, int value)
      Get int parameter from ACP127 Response object
      Parameters:
      acp127resp_obj - Message object from X400ACP127RespNew
      value - integer to be added
    • x400_acp127respgetintparam

      public static int x400_acp127respgetintparam(ACP127Resp acp127resp_obj)
      Set int parameter from ACP127 Response object
      Parameters:
      acp127resp_obj - ACP127Resp object
    • x400_acp127respalinew

      public static int x400_acp127respalinew(ACP127Resp resp_obj, ALI ali_obj)
      Create new Address List Indicator object associated with the X400ACP127 Resp
      Parameters:
      resp_obj - ACP127Resp object
      ali_obj - Address List Indicator object
    • x400_acp127respaliget

      public static int x400_acp127respaliget(ACP127Resp resp_obj, int entry, ALI ali_obj)
      Create new Address List Indicator object associated with the X400ACP127 Resp
      Parameters:
      resp_obj - ACP127Resp object
      entry - ALI entry ACP127Resp ALI object reference
      ali_obj - ALI object ALI object
    • x400_distfieldnew

      public static int x400_distfieldnew(Message message_obj, DistField distfield_obj)
      Create a P772 Distribution Code extension Field object.
      Parameters:
      message_obj - Message object
      distfield_obj - DistField object
    • x400_distfieldget

      public static int x400_distfieldget(Message message_obj, int entry, DistField distfield_obj)
      Get the Distribution Code extension Field object from a message
      Parameters:
      message_obj - Message object
      entry - DistField object reference
      distfield_obj - DistField object
    • x400_distfieldgetstrparam

      public static int x400_distfieldgetstrparam(DistField distfield_obj, int paramtype, StringBuffer value)
      Get string parameter from Distribution Code extension Field object
      Parameters:
      distfield_obj - DistField object
      paramtype - Type of parameter to be fetched
      value - String object into which to return the value
    • x400_distfieldaddstrparam

      public static int x400_distfieldaddstrparam(DistField distfield_obj, int paramtype, String value)
      Add string-valued parameter to the DistField info object
      Parameters:
      distfield_obj - DistField object
      paramtype - Type of parameter to be added
      value - String object to add the value
    • x400_distfieldaddbyteparam

      public static int x400_distfieldaddbyteparam(DistField distfield_obj, int paramtype, byte[] binarydata)
      Add byte-valued parameter to the DistField info object
      Parameters:
      distfield_obj - DistField object from X400DistFieldNew or X400DistFieldGet
      paramtype - Type of parameter to be added
      binarydata - Byte array with the binary data Please note that the len parameter is now ignored
    • x400_distfieldgetbyteparam

      public static int x400_distfieldgetbyteparam(DistField distfield_obj, int paramtype, byte[] binarydata)
      Get byte-valued parameter to the DistField info object
      Parameters:
      distfield_obj - DistField object from X400DistFieldNew or X400DistFieldGet
      paramtype - Type of parameter to be returned
      binarydata - Byte array with the binary data
    • x400_msgaddbyteparam

      public static int x400_msgaddbyteparam(Message message_obj, int paramtype, byte[] binarydata)
      Add byte-valued parameter to a message object
      Parameters:
      message_obj - Message object from MSMsgNew
      paramtype - Type of parameter to be added
      binarydata - Byte array with the binary data Please note that the len parameter is now ignored
    • x400_msggetbyteparam

      public static int x400_msggetbyteparam(Message message_obj, int paramtype, byte[] binarydata)
      Get byte-valued parameter to a message object
      Parameters:
      message_obj - Message object from MsgNew
      paramtype - Type of parameter to be returned
      binarydata - Byte array with the binary data
    • x400_certget

      public static int x400_certget(Recip recip_obj, int entry, Cert cert_obj)
      Get certificate object from message
      Parameters:
      recip_obj - Recipient object
      entry - Certificate object reference
      cert_obj - Certificate object
    • x400_certgetstrparam

      public static int x400_certgetstrparam(Cert cert_obj, int paramtype, StringBuffer value)
      Return a string-valued parameter from the certificate object
      Parameters:
      cert_obj - Certificate object
      paramtype - Type of parameter to be returned
      value - String object into which to return the value
    • x400_certgetintparam

      public static int x400_certgetintparam(Cert cert_obj, int paramtype)
      Return a int-valued parameter from the certificate object
      Parameters:
      cert_obj - Certificate object
      paramtype - Type of parameter to be returned
    • x400_certgetbyteparam

      public static int x400_certgetbyteparam(Cert cert_obj, int paramtype, byte[] binarydata)
      Return a byte-valued parameter from the certificate object
      Parameters:
      cert_obj - Certificate object
      paramtype - Type of parameter to be returned
      binarydata - Byte array with the binary data
    • x400_setcontentoctets

      public static int x400_setcontentoctets(Message message_obj, byte[] binarydata)
      Takes a byte stream containing the ASN.1 encoding of a P22 (or P772) content, decodes it and sets it into a message, so that attributes can be extracted from it.
      Parameters:
      message_obj - Message object
      binarydata - Byte array with the message content
    • x400_initializelogging

      public static int x400_initializelogging(String myname, String xmlfile)
      Initializes logging.
      Parameters:
      myname - Application name
      xmlfile - Logging configuration filename or full path