public class UserIdentifierUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getNonReversibleCitizenIdentifier(String userId,
String orgId,
String appId,
String secret)
Gives back a non-reversible citizen identifier (NRCID).
|
static String |
getUserId(X509Certificate signingCertificate)
Gives back a unique user identifier given an X509 certificate.
|
public static final String HMAC_ALGO
public static String getUserId(X509Certificate signingCertificate)
signingCertificate - public static String getNonReversibleCitizenIdentifier(String userId, String orgId, String appId, String secret)
userId - the primary user identifier, i.e. the national registry
number.orgId - the optional organization identifier.appId - the optional application identifier.secret - the application specific secret. Should be at least 128 bit
long. Encoded in hexadecimal format.Copyright © 2008-2018 FedICT. All Rights Reserved.