public class AuthCertificate extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
comments |
protected long |
id |
protected String |
subject |
protected int |
type |
| Constructor and Description |
|---|
AuthCertificate()
Default implicit constructor.
|
AuthCertificate(long id,
int type,
String certData,
String subject,
String comments)
Create certificate and set all fields.
|
AuthCertificate(org.netxms.base.NXCPMessage msg,
long baseId)
Create certificate from NXCP message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getComments() |
long |
getId() |
String |
getSubject() |
int |
getType() |
void |
setComments(String comments) |
void |
setId(long id) |
void |
setSubject(String subject) |
void |
setType(int type) |
protected long id
protected int type
protected String subject
protected String comments
public AuthCertificate()
public AuthCertificate(org.netxms.base.NXCPMessage msg,
long baseId)
msg - NXCP messagebaseId - Base variable IDpublic AuthCertificate(long id,
int type,
String certData,
String subject,
String comments)
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 certificatecomments - Comments for certificatepublic long getId()
public int getType()
public String getSubject()
public String getComments()
public void setId(long id)
id - the id to setpublic void setType(int type)
type - the type to setpublic void setSubject(String subject)
subject - the subject to setpublic void setComments(String comments)
comments - the comments to setCopyright © 2017. All rights reserved.