All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.stormpath.sdk.saml.CreateSamlResponseRequest Maven / Gradle / Ivy

Go to download

The Stormpath Java SDK API .jar provides a Java API that your code can use to make calls to the Stormpath API. This .jar is the only compile-time dependency within the Stormpath SDK project that your code should depend on. Implementations of this API (implementation .jars) should be runtime dependencies only.

The newest version!
package com.stormpath.sdk.saml;

import com.stormpath.sdk.account.Account;
import com.stormpath.sdk.resource.Resource;

import java.util.Date;

/**
 * A SamlResponseRequest encapsulates the information needed to prepare a SAML response according to the SAML specification.
 *
 * @since 1.3.0
 */
public interface CreateSamlResponseRequest extends Resource {

    /**
     * Returns the {@link Account} to be represented in this SAML response.
     *
     * @return the {@link Account} to be represented in this SAML response.
     */
    Account getAccount();

    /**
     * Sets the {@link Account} to be represented in this SAML response.
     *
     * @param account the {@link Account} to be represented in this SAML response.
     * @return this instance for method chaining.
     */
    CreateSamlResponseRequest setAccount(Account account);

    /**
     * Returns the {@link RegisteredSamlServiceProvider} to be represented in this SAML response.
     *
     * @return the {@link RegisteredSamlServiceProvider} to be represented in this SAML response.
     */
    RegisteredSamlServiceProvider getServiceProvider();

    /**
     * Sets the {@link RegisteredSamlServiceProvider} to be represented in this SAML response.
     *
     * @param serviceProvider the {@link RegisteredSamlServiceProvider} to be represented in this SAML response.
     * @return this instance for method chaining.
     */
    CreateSamlResponseRequest setServiceProvider(RegisteredSamlServiceProvider serviceProvider);

    /**
     * Returns the request ID to be represented in this SAML response, which should match the request ID
     * that was provided in the initiating SAML AuthnRequest.
     *
     * @return the request ID to be represented in this SAML response.
     */
    String getRequestId();

    /**
     * Sets the request ID to be represented in this SAML response, which should match the request ID
     * that was provided in the initiating SAML AuthnRequest.
     *
     * @param requestId the request ID to be represented in this SAML response.
     * @return this instance for method chaining.
     */
    CreateSamlResponseRequest setRequestId(String requestId);

    /**
     * Returns the issue instant to be represented in this SAML response, which should match the issue instant
     * that was provided in the initiating SAML AuthnRequest.
     *
     * @return the issue instant to be represented in this SAML response.
     */
    Date getAuthnIssueInstant();

    /**
     * Sets the issue instant to be represented in this SAML response, which should match the issue instant
     * that was provided in the initiating SAML AuthnRequest.
     *
     * @param authnIssueInstant the issue instant to be represented in this SAML response.
     * @return this instance for method chaining.
     */
    CreateSamlResponseRequest setAuthnIssueInstant(Date authnIssueInstant);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy