Class UserInfo
- java.lang.Object
- 
- org.nuxeo.ecm.platform.signature.api.user.UserInfo
 
- 
 public class UserInfo extends Object Carries user information encoded inside an x509Name.This class is a DTO which exposes an X500 Principal view. It is used to pass user information between application layers. Verifies that all required tokens are present. Required tokens: - user identifier (commonName field)
- user X500Principal: commonName CN, organizationalUnitName OU, organizationName O, countryName C
- user email (emailAddress)
 - Author:
- Wojciech Sulejman
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDN(Map<CNField,String> userFields)Returns a formatted DN stringMap<CNField,String>getUserFields()X500PrincipalgetX500Principal()StringtoString()voidverify(Map<CNField,String> userFields)Verifies that all required X500 Principal field values have been set on this object
 
- 
- 
- 
Constructor Detail- 
UserInfopublic UserInfo(Map<CNField,String> userDNFields) throws CertException The fields provided as a parameter to the constructor. Must be a full set of all the fields as present in the CNField enum.- Throws:
- CertException
 
 
- 
 - 
Method Detail- 
verifypublic void verify(Map<CNField,String> userFields) throws CertException Verifies that all required X500 Principal field values have been set on this object- Throws:
- CertException
 
 - 
getX500Principalpublic X500Principal getX500Principal() 
 
- 
 
-