@RestController
public class LdapAuthController
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
LdapAuthController() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.OAuth2AccessToken> |
getAccessToken(java.security.Principal principal,
java.util.Map<java.lang.String,java.lang.String> parameters,
javax.servlet.http.HttpServletRequest request) |
java.util.Set<org.springframework.http.HttpMethod> |
getAllowedRequestMethods() |
org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator |
getExceptionTranslator() |
org.springframework.ldap.core.support.LdapContextSource |
getLdapContextSource() |
org.springframework.ldap.core.LdapTemplate |
getLdapTemplate() |
java.lang.String |
getLdapUserLoginField() |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> |
handleBadCredentialsException(org.springframework.security.authentication.BadCredentialsException e) |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> |
handleClientAuthenticationException(org.springframework.security.oauth2.common.exceptions.ClientAuthenticationException e) |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> |
handleException(java.lang.Exception e) |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> |
handleHttpRequestMethodNotSupportedException(org.springframework.web.HttpRequestMethodNotSupportedException e) |
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.OAuth2AccessToken> |
postAccessToken(java.security.Principal principal,
java.util.Map<java.lang.String,java.lang.String> parameters,
javax.servlet.http.HttpServletRequest request) |
void |
setAllowedRequestMethods(java.util.Set<org.springframework.http.HttpMethod> allowedRequestMethods) |
void |
setExceptionTranslator(org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator providerExceptionHandler) |
void |
setLdapContextSource(org.springframework.ldap.core.support.LdapContextSource ldapContextSource) |
void |
setLdapTemplate(org.springframework.ldap.core.LdapTemplate ldapTemplate) |
void |
setLdapUserLoginField(java.lang.String ldapUserLoginField) |
@RequestMapping(value="/v2/ldap/token", method=GET) public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.OAuth2AccessToken> getAccessToken(java.security.Principal principal, @RequestParam java.util.Map<java.lang.String,java.lang.String> parameters, javax.servlet.http.HttpServletRequest request) throws org.springframework.web.HttpRequestMethodNotSupportedException
org.springframework.web.HttpRequestMethodNotSupportedException
@RequestMapping(value="/v2/ldap/token", method=POST) public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.OAuth2AccessToken> postAccessToken(java.security.Principal principal, @RequestParam java.util.Map<java.lang.String,java.lang.String> parameters, javax.servlet.http.HttpServletRequest request) throws org.springframework.web.HttpRequestMethodNotSupportedException
org.springframework.web.HttpRequestMethodNotSupportedException
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
@ExceptionHandler(value=java.lang.Exception.class) public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> handleException(java.lang.Exception e) throws java.lang.Exception
java.lang.Exception
@ExceptionHandler(value=org.springframework.security.authentication.BadCredentialsException.class) public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> handleBadCredentialsException(org.springframework.security.authentication.BadCredentialsException e) throws java.lang.Exception
java.lang.Exception
@ExceptionHandler(value=org.springframework.security.oauth2.common.exceptions.ClientAuthenticationException.class) public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> handleClientAuthenticationException(org.springframework.security.oauth2.common.exceptions.ClientAuthenticationException e) throws java.lang.Exception
java.lang.Exception
@ExceptionHandler(value=org.springframework.web.HttpRequestMethodNotSupportedException.class) public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> handleHttpRequestMethodNotSupportedException(org.springframework.web.HttpRequestMethodNotSupportedException e) throws java.lang.Exception
java.lang.Exception
public org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator getExceptionTranslator()
public void setExceptionTranslator(org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator providerExceptionHandler)
public java.util.Set<org.springframework.http.HttpMethod> getAllowedRequestMethods()
public void setAllowedRequestMethods(java.util.Set<org.springframework.http.HttpMethod> allowedRequestMethods)
public org.springframework.ldap.core.support.LdapContextSource getLdapContextSource()
public void setLdapContextSource(org.springframework.ldap.core.support.LdapContextSource ldapContextSource)
public org.springframework.ldap.core.LdapTemplate getLdapTemplate()
public void setLdapTemplate(org.springframework.ldap.core.LdapTemplate ldapTemplate)
public java.lang.String getLdapUserLoginField()
public void setLdapUserLoginField(java.lang.String ldapUserLoginField)