public class CommunoteUserCertificate extends Object
Constructor and Description |
---|
CommunoteUserCertificate(String subject)
Use the given subject name.
|
CommunoteUserCertificate(X509Certificate cert) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsValidCommunoteUser()
Checks if the certificate / subject name contains all information for identifying the user.
|
String |
getClientId() |
String |
getCommunoteUserAlias() |
String |
getSubjectName()
Example.
|
static CommunoteUserCertificate |
pickValid(X509Certificate[] certs)
Uses the list of certificates and create a communote certificate and check if all properties
are set and valid.
|
public CommunoteUserCertificate(String subject)
subject
- the name, cannot be null or empty and must be a valid LdapName
public CommunoteUserCertificate(X509Certificate cert)
cert
- initialize with the X509Certificatepublic static CommunoteUserCertificate pickValid(X509Certificate[] certs)
certs
- some certificates to pick one frompublic boolean containsValidCommunoteUser()
public String getClientId()
public String getCommunoteUserAlias()
public String getSubjectName()
Copyright © 2019 Communote team. All rights reserved.