public class SamlPrincipal extends Object implements Serializable, Principal
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ROLE_ATTRIBUTE_NAME |
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 |
---|---|
boolean |
equals(Object other) |
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
|
Map<String,List<String>> |
getAttributes()
Convenience function that gets the attributes associated with this principal
|
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() |
NameIDType |
getNameID()
Subject nameID format
|
String |
getNameIDFormat()
Subject nameID format
|
String |
getSamlSubject()
Get SAML subject sent in assertion
|
int |
hashCode() |
public static final String DEFAULT_ROLE_ATTRIBUTE_NAME
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 NameIDType getNameID()
public List<String> getAttributes(String name)
name
- public Map<String,List<String>> getAttributes()
public List<String> getFriendlyAttributes(String friendlyName)
friendlyName
- public String getAttribute(String name)
name
- public String getFriendlyAttribute(String friendlyName)
friendlyName
- public Set<String> getAttributeNames()
public Set<String> getFriendlyNames()
public boolean equals(Object other)
Copyright © 2019 JBoss by Red Hat. All rights reserved.