public class RestAuthenticationApi
extends java.lang.Object
RestAuthenticationApi.| Constructor and Description |
|---|
RestAuthenticationApi(org.springframework.web.client.RestTemplate restTemplate,
java.lang.String authenticationUri) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<org.apereo.cas.authentication.principal.SimplePrincipal> |
authenticate(org.apereo.cas.authentication.UsernamePasswordCredential c)
Authenticate and receive entity from the rest template.
|
static org.springframework.http.HttpHeaders |
createHeaders(org.apereo.cas.authentication.UsernamePasswordCredential c)
Create authorization http headers.
|
public RestAuthenticationApi(org.springframework.web.client.RestTemplate restTemplate,
java.lang.String authenticationUri)
public org.springframework.http.ResponseEntity<org.apereo.cas.authentication.principal.SimplePrincipal> authenticate(org.apereo.cas.authentication.UsernamePasswordCredential c)
c - the credentialpublic static org.springframework.http.HttpHeaders createHeaders(org.apereo.cas.authentication.UsernamePasswordCredential c)
c - the credentials