Package org.apereo.cas.rest.factory
Interface RestHttpRequestCredentialFactory
-
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
ChainingRestHttpRequestCredentialFactory,UsernamePasswordRestHttpRequestCredentialFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface RestHttpRequestCredentialFactory extends org.springframework.core.OrderedStrategy interface for enabling plug-in point for constructingCredentialinstances from HTTP request body.- Since:
- 4.2.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAMETER_PASSWORDPassword parameter.static java.lang.StringPARAMETER_USERNAMEUsername parameter.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.util.List<org.apereo.cas.authentication.Credential>fromAuthentication(javax.servlet.http.HttpServletRequest request, org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> requestBody, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider)From authentication.java.util.List<org.apereo.cas.authentication.Credential>fromRequest(javax.servlet.http.HttpServletRequest request, org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> requestBody)Create new Credential instances from HTTP request or requestBody.default intgetOrder()
-
-
-
Field Detail
-
PARAMETER_USERNAME
static final java.lang.String PARAMETER_USERNAME
Username parameter.- See Also:
- Constant Field Values
-
PARAMETER_PASSWORD
static final java.lang.String PARAMETER_PASSWORD
Password parameter.- See Also:
- Constant Field Values
-
-
Method Detail
-
fromRequest
java.util.List<org.apereo.cas.authentication.Credential> fromRequest(javax.servlet.http.HttpServletRequest request, org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> requestBody)Create new Credential instances from HTTP request or requestBody.- Parameters:
request- object to extract credentials fromrequestBody- multipart/form-data request body to extract credentials from- Returns:
- Credential instance(s)
-
getOrder
default int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
fromAuthentication
default java.util.List<org.apereo.cas.authentication.Credential> fromAuthentication(javax.servlet.http.HttpServletRequest request, org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> requestBody, org.apereo.cas.authentication.Authentication authentication, org.apereo.cas.authentication.MultifactorAuthenticationProvider provider)From authentication.- Parameters:
request- the requestrequestBody- the request bodyauthentication- the authnprovider- the provider- Returns:
- the list
-
-