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

com.stormpath.sdk.application.webconfig.ApplicationWebConfig 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!
/*
 * Copyright 2016 Stormpath, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.stormpath.sdk.application.webconfig;

import com.stormpath.sdk.api.ApiKey;
import com.stormpath.sdk.application.Application;
import com.stormpath.sdk.resource.Auditable;
import com.stormpath.sdk.resource.Resource;
import com.stormpath.sdk.resource.Saveable;
import com.stormpath.sdk.tenant.Tenant;

/**
 * As ApplicationWebConfig resource is used to configure how the {@link Application application} associated to
 * {@link WebFeatureConfig this} object behaves in the Stormpath Client Api.
 * 

* For example, if you don't want to let users to register to associated the {@link Application application} via the * Stormpath Client Api, you need to turn it off. *

*

 * ApplicationWebConfig webConfig = application.getWebConfig();
 * webConfig.getRegister().setEnabled(false);
 * webConfig.save();
 * 
*

* Or if you want to expands the groups of the account that is access via the {@code /me} route. *

*

 * ApplicationWebConfig webConfig = application.getWebConfig();
 * webConfig.getMe().getExpansions().setGroups(true);
 * webConfig.save();
 * 
* * @since 1.2.0 */ public interface ApplicationWebConfig extends Resource, Saveable, Auditable { /** * Returns the WebConfiguration's Domain name, this is automatically generated by Stormpath (using the {@link #getDnsLabel() value} * and is guaranteed to be unique across all {@link com.stormpath.sdk.tenant.Tenant tenants} in Stormpath. * * @return the WebConfiguration's Domain name value or {@code null} if one hasn't been generated for {@code this} * resource. */ String getDomainName(); /** * Returns the current dnsLabel or {@code null} if none has been set. * * @return the current dnsLabel or {@code null} if none has been set. */ String getDnsLabel(); /** * Sets the preferred dnsLabel of the client api domain name. *

* Warning: Changing this value will override the {@link #getDomainName() domainName} value. * * @param dnsLabel to use as part the {@link #getDomainName()} of {@code this} configuration/ */ ApplicationWebConfig setDnsLabel(String dnsLabel); /** * Returns the ApplicationWebConfigStatus's status. Users won't be able to use the Stormpath's Client Api if it's * disabled. * * @return the webConfiguration's status. */ ApplicationWebConfigStatus getStatus(); /** * Sets the webConfiguration's status. Users won't be able to use the Stormpath's Client Api if it's disabled. * * @param status the webConfiguration's status. */ ApplicationWebConfig setStatus(ApplicationWebConfigStatus status); /** * Returns the {@link ApiKey signingApiKey} used to sign and/or validate requests and assertions issued by Stormpath's * Client Api or {@code null} if none is set. * * @return the {@link ApiKey signingApiKey} used to sign and/or validate requests and assertions issued by Stormpath's * Client Api or {@code null} if none is set. */ ApiKey getSigningApiKey(); /** * Sets the {@link ApiKey apiKey} to be used by Stormpath's Client Api to sign request and assertions. If set to * {@code null} the Stormpath Client Api won't be available for users. * * @param apiKey to be used by Stormpath's Client Api to sign request and assertions. If set to * {@code null} the Stormpath Client Api won't be available for users. */ ApplicationWebConfig setSigningApiKey(ApiKey apiKey); /** * Returns the {@link Oauth2Config oauth2Config} associated to this {@link ApplicationWebConfig applicationWebConfig}. * * @return the {@link Oauth2Config oauth2Config} associated to this {@link ApplicationWebConfig applicationWebConfig}. */ Oauth2Config getOAuth2(); /** * Returns the {@link RegisterConfig registerConfig} associated to this {@link ApplicationWebConfig applicationWebConfig}. * * @return the {@link RegisterConfig registerConfig} associated to this {@link ApplicationWebConfig applicationWebConfig}. */ RegisterConfig getRegister(); /** * Returns the {@link LoginConfig loginConfig} associated to this {@link ApplicationWebConfig applicationWebConfig}. * * @return the {@link LoginConfig loginConfig} associated to this {@link ApplicationWebConfig applicationWebConfig}. */ LoginConfig getLogin(); /** * Returns the {@link VerifyEmailConfig verifyEmailConfig} associated to this {@link ApplicationWebConfig applicationWebConfig}. * * @return the {@link VerifyEmailConfig verifyEmailConfig} associated to this {@link ApplicationWebConfig applicationWebConfig}. */ VerifyEmailConfig getVerifyEmail(); /** * Returns the {@link ForgotPasswordConfig forgotPasswordConfig} associated to this {@link ApplicationWebConfig applicationWebConfig}. * * @return the {@link ForgotPasswordConfig forgotPasswordConfig} associated to this {@link ApplicationWebConfig applicationWebConfig}. */ ForgotPasswordConfig getForgotPassword(); /** * Returns the {@link ChangePasswordConfig changePasswordConfig} associated to this {@link ApplicationWebConfig applicationWebConfig}. * * @return the {@link ChangePasswordConfig changePasswordConfig} associated to this {@link ApplicationWebConfig applicationWebConfig}. */ ChangePasswordConfig getChangePassword(); /** * Returns the {@link MeConfig meConfig} associated to this {@link ApplicationWebConfig applicationWebConfig}. * * @return the {@link MeConfig meConfig} associated to this {@link ApplicationWebConfig applicationWebConfig}. */ MeConfig getMe(); /** * Returns the {@link Application Application} associated to this {@link ApplicationWebConfig applicationWebConfig}. * * @return the {@link Application Application} associated to this {@link ApplicationWebConfig applicationWebConfig}. */ Application getApplication(); /** * Returns the {@link Tenant tenant} associated to this {@link ApplicationWebConfig applicationWebConfig}. * * @return the {@link Tenant tenant} associated to this {@link ApplicationWebConfig applicationWebConfig}. */ Tenant getTenant(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy