Class UserInfo
java.lang.Object
org.nuxeo.ecm.platform.signature.api.user.UserInfo
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a formatted DN stringtoString()
void
Verifies that all required X500 Principal field values have been set on this object
-
Constructor Details
-
UserInfo
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 Details
-
verify
Verifies that all required X500 Principal field values have been set on this object- Throws:
CertException
-
getDN
Returns a formatted DN string -
getUserFields
-
getX500Principal
-
toString
-