public class AttributeSetImpl extends Object implements AttributeSet
Constructor and Description |
---|
AttributeSetImpl()
Default constructor.
|
AttributeSetImpl(String identifier,
String uri,
String friendlyName,
se.litsec.opensaml.saml2.attribute.AttributeTemplate[] requiredAttributes,
se.litsec.opensaml.saml2.attribute.AttributeTemplate[] recommendedAttributes)
A constructor setting all properties of this bean.
|
Modifier and Type | Method and Description |
---|---|
String |
getFriendlyName()
Returns the friendly name for this attribute set.
|
String |
getIdentifier()
Each attribute set within the Swedish eID Framework is assigned an unique profile identifier.
|
se.litsec.opensaml.saml2.attribute.AttributeTemplate[] |
getRecommendedAttributes()
Returns the recommended attributes for this attribute set
|
se.litsec.opensaml.saml2.attribute.AttributeTemplate[] |
getRequiredAttributes()
Returns the required attributes for this attribute set
|
String |
getUri()
Each attribute set within the Swedish eID Framework is assigned an unique URI.
|
void |
setFriendlyName(String friendlyName)
Assigns the friendly name for this attribute set.
|
void |
setIdentifier(String identifier)
Each attribute set within the Swedish eID Framework is assigned an unique profile identifier.
|
void |
setRecommendedAttributes(se.litsec.opensaml.saml2.attribute.AttributeTemplate[] recommendedAttributes)
Assigns the recommended attributes for this set.
|
void |
setRequiredAttributes(se.litsec.opensaml.saml2.attribute.AttributeTemplate[] requiredAttributes)
Assigns the required attributes for this attribute set.
|
void |
setUri(String uri)
Each attribute set within the Swedish eID Framework is assigned an unique URI.
|
void |
validateAttributes(Assertion assertion,
List<RequestedAttribute> explicitlyRequestedAttributes)
Validates the attributes received in the assertion against the attribute set.
|
public AttributeSetImpl()
public AttributeSetImpl(String identifier, String uri, String friendlyName, se.litsec.opensaml.saml2.attribute.AttributeTemplate[] requiredAttributes, se.litsec.opensaml.saml2.attribute.AttributeTemplate[] recommendedAttributes)
identifier
- the unique profile identifieruri
- the unique profile URIfriendlyName
- the "friendly name" of the attribute setrequiredAttributes
- the required attributes for this attribute setrecommendedAttributes
- the recommended attributes for this attribute setpublic void validateAttributes(Assertion assertion, List<RequestedAttribute> explicitlyRequestedAttributes) throws AttributesValidationException
<md:RequestedAttribute>
elements.validateAttributes
in interface AttributeSet
assertion
- the assertion containing the attributes to validateexplicitlyRequestedAttributes
- a list of explicitly requested attributes that the Service Provider has specified in its metadata record
(using <md:RequestedAttribute>
elements). This parameter may be null
if no explicitly
requested attributes existAttributesValidationException
- for violations of the attribute setpublic String getIdentifier()
getIdentifier
in interface AttributeSet
AttributeSet.getUri()
public String getUri()
getUri
in interface AttributeSet
AttributeSet.getIdentifier()
public String getFriendlyName()
getFriendlyName
in interface AttributeSet
public se.litsec.opensaml.saml2.attribute.AttributeTemplate[] getRequiredAttributes()
getRequiredAttributes
in interface AttributeSet
public se.litsec.opensaml.saml2.attribute.AttributeTemplate[] getRecommendedAttributes()
getRecommendedAttributes
in interface AttributeSet
public void setIdentifier(String identifier)
identifier
- the identifier to assignpublic void setUri(String uri)
uri
- the URI to assignpublic void setFriendlyName(String friendlyName)
friendlyName
- the friendlyName to setpublic void setRequiredAttributes(se.litsec.opensaml.saml2.attribute.AttributeTemplate[] requiredAttributes)
requiredAttributes
- the attributes to assignpublic void setRecommendedAttributes(se.litsec.opensaml.saml2.attribute.AttributeTemplate[] recommendedAttributes)
recommendedAttributes
- the attributes to assignCopyright © 2018 Litsec AB. All rights reserved.