Package org.netxms.client.users
Class AuthCertificate
- java.lang.Object
-
- org.netxms.client.users.AuthCertificate
-
public class AuthCertificate extends Object
NetXMS object tool representation
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComments()longgetId()StringgetSubject()intgetType()voidsetComments(String comments)voidsetId(long id)voidsetSubject(String subject)voidsetType(int type)
-
-
-
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 messagebaseId- 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 certificatecomments- 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
-
-