Package org.apereo.cas.adaptors.rest
Class RestAuthenticationApi
- java.lang.Object
-
- org.apereo.cas.adaptors.rest.RestAuthenticationApi
-
public class RestAuthenticationApi extends java.lang.ObjectThis isRestAuthenticationApi.- Since:
- 5.0.0
-
-
Constructor Summary
Constructors Constructor Description RestAuthenticationApi(org.springframework.web.client.RestTemplate restTemplate, java.lang.String authenticationUri, java.lang.String charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<org.apereo.cas.authentication.principal.SimplePrincipal>authenticate(org.apereo.cas.authentication.credential.UsernamePasswordCredential c)Authenticate and receive entity from the rest template.
-
-
-
Method Detail
-
authenticate
public org.springframework.http.ResponseEntity<org.apereo.cas.authentication.principal.SimplePrincipal> authenticate(org.apereo.cas.authentication.credential.UsernamePasswordCredential c)
Authenticate and receive entity from the rest template.- Parameters:
c- the credential- Returns:
- the response entity
-
-