# com.bea.wsrp.security
IdentityAssertionProvider Interface

public interface IdentityAssertionProvider

Specifies an interface for creating and SAML assertions for SSO between a WLP Consumer and WLP Producer.

All Known Implementing Classes
  `DefaultIdentityAssertionProvider`

## Method Summary

`public AssertionDocument` | `createAssertion`(`Principal` principal, `String` consumerName) Creates a SAML identity assertion.
`public void` | `init`(`String` keystorePath, `String` keystorePassword, `String` certAlias, `String` privateKeyPassword) Initializes the keystore for generating and validating identity assertion tokens.
`public boolean` | `validateAssertion`(AssertionType assertion) Validates a SAML assertion.

## Method Detail

### createAssertion(Principal, String) Method

    public AssertionDocument createAssertion(Principal principal,
                                             String consumerName)
         throws IOException, XmlException, NoSuchAlgorithmException

Creates a SAML identity assertion.

#### Exceptions

``IOException``
``XmlException``
``NoSuchAlgorithmException``

### init(String, String, String, String) Method

    public void init(String keystorePath,
                     String keystorePassword,
                     String certAlias,
                     String privateKeyPassword)

Initializes the keystore for generating and validating identity assertion tokens.

### validateAssertion(AssertionType) Method

    public boolean validateAssertion(AssertionType assertion)
         throws IdentityAssertionException

Validates a SAML assertion.

#### Exceptions

``IdentityAssertionException``