Class AadB2cProperties
- java.lang.Object
-
- com.azure.spring.cloud.autoconfigure.aadb2c.properties.AadB2cProperties
-
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
public class AadB2cProperties extends Object implements org.springframework.beans.factory.InitializingBean
Configuration properties for Azure Active Directory B2C.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringDEFAULT_KEY_PASSWORD_RESETThe default user flow key 'password-reset'.static StringDEFAULT_KEY_SIGN_UP_OR_SIGN_INThe default user flow key 'sign-up-or-sign-in'.static StringDEFAULT_LOGOUT_SUCCESS_URLDefault logout success URL.static StringPREFIXPrefix
-
Constructor Summary
Constructors Constructor Description AadB2cProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()StringgetAppIdUri()Gets the app ID URI.Map<String,Object>getAuthenticateAdditionalParameters()Gets the additional authenticate parameters.Map<String,AuthorizationClientProperties>getAuthorizationClients()Gets the authorization clients.StringgetBaseUri()Gets the base URI.AadB2cCredentialPropertiesgetCredential()Gets the credential.DurationgetJwtConnectTimeout()Gets the JWT connect timeout.DurationgetJwtReadTimeout()Get the JWT read timeout.intgetJwtSizeLimit()Gets the JWT size limit.StringgetLoginFlow()Gets the login flow.StringgetLogoutSuccessUrl()Gets the logout success URL.StringgetPasswordReset()Gets the password reset.AadB2cProfilePropertiesgetProfile()Gets the profile.StringgetReplyUrl()Gets the reply URL.Map<String,String>getUserFlows()Gets the user flows.StringgetUserNameAttributeName()Gets the username attribute name.voidsetAppIdUri(String appIdUri)Sets the app ID URI.voidsetBaseUri(String baseUri)Sets the base URI.voidsetJwtConnectTimeout(Duration jwtConnectTimeout)Sets the JWT connect timeout.voidsetJwtReadTimeout(Duration jwtReadTimeout)Sets the JWT read timeout.voidsetJwtSizeLimit(int jwtSizeLimit)Sets the JWT size limit.voidsetLoginFlow(String loginFlow)Sets the login flow.voidsetLogoutSuccessUrl(String logoutSuccessUrl)Sets the logout success URL.voidsetReplyUrl(String replyUrl)Sets the reply URL.voidsetUserFlows(Map<String,String> userFlows)Sets the user flows.voidsetUserNameAttributeName(String userNameAttributeName)Sets the username attribute name.
-
-
-
Field Detail
-
DEFAULT_LOGOUT_SUCCESS_URL
public static final String DEFAULT_LOGOUT_SUCCESS_URL
Default logout success URL.- See Also:
- Constant Field Values
-
PREFIX
public static final String PREFIX
Prefix- See Also:
- Constant Field Values
-
DEFAULT_KEY_SIGN_UP_OR_SIGN_IN
public static final String DEFAULT_KEY_SIGN_UP_OR_SIGN_IN
The default user flow key 'sign-up-or-sign-in'.- See Also:
- Constant Field Values
-
DEFAULT_KEY_PASSWORD_RESET
protected static final String DEFAULT_KEY_PASSWORD_RESET
The default user flow key 'password-reset'.- See Also:
- Constant Field Values
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getPasswordReset
public String getPasswordReset()
Gets the password reset.- Returns:
- the password reset
-
getBaseUri
public String getBaseUri()
Gets the base URI.- Returns:
- the base URI
-
setBaseUri
public void setBaseUri(String baseUri)
Sets the base URI.- Parameters:
baseUri- the base URI
-
setUserFlows
public void setUserFlows(Map<String,String> userFlows)
Sets the user flows.- Parameters:
userFlows- the user flows
-
getLoginFlow
public String getLoginFlow()
Gets the login flow.- Returns:
- the login flow
-
setLoginFlow
public void setLoginFlow(String loginFlow)
Sets the login flow.- Parameters:
loginFlow- the login flow
-
getCredential
public AadB2cCredentialProperties getCredential()
Gets the credential.- Returns:
- the credential.
-
getLogoutSuccessUrl
public String getLogoutSuccessUrl()
Gets the logout success URL.- Returns:
- the logout success URL
-
setLogoutSuccessUrl
public void setLogoutSuccessUrl(String logoutSuccessUrl)
Sets the logout success URL.- Parameters:
logoutSuccessUrl- the logout success URL
-
getAuthenticateAdditionalParameters
public Map<String,Object> getAuthenticateAdditionalParameters()
Gets the additional authenticate parameters.- Returns:
- the additional authenticate parameters
-
getUserNameAttributeName
public String getUserNameAttributeName()
Gets the username attribute name.- Returns:
- the username attribute name
-
setUserNameAttributeName
public void setUserNameAttributeName(String userNameAttributeName)
Sets the username attribute name.- Parameters:
userNameAttributeName- the username attribute name
-
getReplyUrl
public String getReplyUrl()
Gets the reply URL.- Returns:
- the reply URL
-
setReplyUrl
public void setReplyUrl(String replyUrl)
Sets the reply URL.- Parameters:
replyUrl- the reply URL
-
getAppIdUri
public String getAppIdUri()
Gets the app ID URI.- Returns:
- the app ID URI
-
setAppIdUri
public void setAppIdUri(String appIdUri)
Sets the app ID URI.- Parameters:
appIdUri- the app ID URI.
-
getJwtConnectTimeout
public Duration getJwtConnectTimeout()
Gets the JWT connect timeout.- Returns:
- the JWT connect timeout
-
setJwtConnectTimeout
public void setJwtConnectTimeout(Duration jwtConnectTimeout)
Sets the JWT connect timeout.- Parameters:
jwtConnectTimeout- the JWT connect timeout
-
getJwtReadTimeout
public Duration getJwtReadTimeout()
Get the JWT read timeout.- Returns:
- the JWT read timeout
-
setJwtReadTimeout
public void setJwtReadTimeout(Duration jwtReadTimeout)
Sets the JWT read timeout.- Parameters:
jwtReadTimeout- the JWT read timeout
-
getJwtSizeLimit
public int getJwtSizeLimit()
Gets the JWT size limit.- Returns:
- the JWT size limit
-
setJwtSizeLimit
public void setJwtSizeLimit(int jwtSizeLimit)
Sets the JWT size limit.- Parameters:
jwtSizeLimit- the JWT size limit
-
getProfile
public AadB2cProfileProperties getProfile()
Gets the profile.- Returns:
- the profile
-
getAuthorizationClients
public Map<String,AuthorizationClientProperties> getAuthorizationClients()
Gets the authorization clients.- Returns:
- the authorization clients
-
-