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