Class AuthCertificate


  • public class AuthCertificate
    extends Object
    NetXMS object tool representation
    • Field Detail

      • id

        protected long id
      • type

        protected int type
      • subject

        protected String subject
      • comments

        protected String comments
    • Constructor Detail

      • AuthCertificate

        public AuthCertificate()
        Default implicit constructor.
      • AuthCertificate

        public AuthCertificate​(org.netxms.base.NXCPMessage msg,
                               long baseId)
        Create certificate from NXCP message. Intended to be called only by NXCSession methods.
        Parameters:
        msg - NXCP message
        baseId - Base variable ID
      • AuthCertificate

        public AuthCertificate​(long id,
                               int type,
                               String certData,
                               String subject,
                               String comments)
        Create certificate and set all fields.
        Parameters:
        id - Id of certificate, should be set to 0 if new certificate is created.
        type - Type of certificate mapping. Can be USER_MAP_CERT_BY_SUBJECT or USER_MAP_CERT_BY_PUBKEY.
        certData - Certificate in PEM format.
        subject - Subject of the certificate
        comments - Comments for certificate
    • Method Detail

      • getId

        public long getId()
        Returns:
        the id
      • getType

        public int getType()
        Returns:
        the type
      • getSubject

        public String getSubject()
        Returns:
        the subject
      • getComments

        public String getComments()
        Returns:
        the comments
      • setId

        public void setId​(long id)
        Parameters:
        id - the id to set
      • setType

        public void setType​(int type)
        Parameters:
        type - the type to set
      • setSubject

        public void setSubject​(String subject)
        Parameters:
        subject - the subject to set
      • setComments

        public void setComments​(String comments)
        Parameters:
        comments - the comments to set