Class RestAuthenticationApi


  • public class RestAuthenticationApi
    extends java.lang.Object
    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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestAuthenticationApi

        public RestAuthenticationApi​(org.springframework.web.client.RestTemplate restTemplate,
                                     java.lang.String authenticationUri,
                                     java.lang.String charset)
    • 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