This class represents the AuthnResponse element in the Liberty Single Sign-on and Federation protocol. The identity provider responds to an AuthnRequest from the service provider with an AuthnResponse containing authentication assertions or artifacts the service provider can dereference into authentication assertions. All the authentication assertions are Liberty assertions of the type lib:Assertiontype which is an extension of the saml:AssertionType.

addAssertion

Adds a Liberty Assertion element to this response. A Liberty Assertion element must be of the type lib:AessertionType which contains Liberty authentication assertions generated by the identity provider for the service provider.

Parameters:

assertion - An LibAssertion object.

getAssertions

public java.util.List getAssertions()

Gets the list of Liberty authentication assertions contained in this response.

Returns:

A List containing LibAssertion objects, or an empty List if none has been set.