public class AttributeMapLoader extends Object
Constructor and Description |
---|
AttributeMapLoader() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
buildClaimsMapFile(String attributeMapFile)
Parses a file of attributes and returns them as a map.
|
static String |
getBaseDN(Principal principal,
String defaultBaseDN,
boolean overrideCertDn)
Determines the base DN for the provided
Principal . |
static String |
getCredentials(Principal principal) |
static String |
getUser(Principal principal)
Obtains the user name from the principal.
|
public static Map<String,String> buildClaimsMapFile(String attributeMapFile)
attributeMapFile
- File of the listed attributespublic static String getUser(Principal principal)
principal
- Describing the current user that should be used for retrieving claims.public static String getBaseDN(Principal principal, String defaultBaseDN, boolean overrideCertDn)
Principal
.
If an X500 Principal
is provided, its base DN is extracted; however, if it is empty
then then provided defaultBaseDN
is used instead.
If any other type of Principal
is provided, the defaultBaseDN
is used.
principal
- the Principal to checkdefaultBaseDN
- the default DN to fall back toThis work is licensed under a Creative Commons Attribution 4.0 International License.