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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDN(Map<CNField,String> userFields)
Returns a formatted DN stringMap<CNField,String>
getUserFields()
X500Principal
getX500Principal()
String
toString()
void
verify(Map<CNField,String> userFields)
Verifies that all required X500 Principal field values have been set on this object
-
-
-
Constructor Detail
-
UserInfo
public 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
-
verify
public void verify(Map<CNField,String> userFields) throws CertException
Verifies that all required X500 Principal field values have been set on this object- Throws:
CertException
-
getX500Principal
public X500Principal getX500Principal()
-
-