public class SamlPrincipal extends Object implements Serializable, Principal
Constructor and Description |
---|
SamlPrincipal() |
SamlPrincipal(AssertionType assertion,
String name,
String samlSubject,
String nameIDFormat,
MultivaluedHashMap<String,String> attributes,
MultivaluedHashMap<String,String> friendlyAttributes) |
Modifier and Type | Method and Description |
---|---|
AssertionType |
getAssertion()
Get full saml assertion
|
String |
getAttribute(String name)
Convenience function that gets first value of an attribute by attribute name
|
Set<String> |
getAttributeNames()
Get set of all assertion attribute names
|
List<String> |
getAttributes(String name)
Convenience function that gets Attribute value by attribute name
|
String |
getFriendlyAttribute(String friendlyName)
Convenience function that gets first value of an attribute by attribute name
|
List<String> |
getFriendlyAttributes(String friendlyName)
Convenience function that gets Attribute value by attribute friendly name
|
Set<String> |
getFriendlyNames()
Get set of all assertion friendly attribute names
|
String |
getName() |
String |
getNameIDFormat()
Subject nameID format
|
String |
getSamlSubject()
Get SAML subject sent in assertion
|
public SamlPrincipal(AssertionType assertion, String name, String samlSubject, String nameIDFormat, MultivaluedHashMap<String,String> attributes, MultivaluedHashMap<String,String> friendlyAttributes)
public SamlPrincipal()
public AssertionType getAssertion()
public String getSamlSubject()
public String getNameIDFormat()
public List<String> getAttributes(String name)
name
- public List<String> getFriendlyAttributes(String friendlyName)
friendlyName
- public String getAttribute(String name)
name
- public String getFriendlyAttribute(String friendlyName)
friendlyName
- public Set<String> getAttributeNames()
Copyright © 2016 JBoss by Red Hat. All rights reserved.