org.springframework.security.oauth2.http.converter
类 FormOAuth2AccessTokenMessageConverter

java.lang.Object
  继承者 org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessToken>
      继承者 org.springframework.security.oauth2.http.converter.FormOAuth2AccessTokenMessageConverter
所有已实现的接口:
org.springframework.http.converter.HttpMessageConverter<OAuth2AccessToken>

public class FormOAuth2AccessTokenMessageConverter
extends org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessToken>

Converter that can handle inbound form data and convert it to an access token. Needed to support external servers, like Facebook that might not send JSON token data.

作者:
Rob Winch, Dave Syer

字段摘要
 
从类 org.springframework.http.converter.AbstractHttpMessageConverter 继承的字段
logger
 
构造方法摘要
FormOAuth2AccessTokenMessageConverter()
           
 
方法摘要
protected  OAuth2AccessToken readInternal(Class<? extends OAuth2AccessToken> clazz, org.springframework.http.HttpInputMessage inputMessage)
           
protected  boolean supports(Class<?> clazz)
           
protected  void writeInternal(OAuth2AccessToken accessToken, org.springframework.http.HttpOutputMessage outputMessage)
           
 
从类 org.springframework.http.converter.AbstractHttpMessageConverter 继承的方法
canRead, canRead, canWrite, canWrite, getContentLength, getDefaultContentType, getSupportedMediaTypes, read, setSupportedMediaTypes, write
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

FormOAuth2AccessTokenMessageConverter

public FormOAuth2AccessTokenMessageConverter()
方法详细信息

supports

protected boolean supports(Class<?> clazz)
指定者:
org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessToken> 中的 supports

readInternal

protected OAuth2AccessToken readInternal(Class<? extends OAuth2AccessToken> clazz,
                                         org.springframework.http.HttpInputMessage inputMessage)
                                  throws IOException,
                                         org.springframework.http.converter.HttpMessageNotReadableException
指定者:
org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessToken> 中的 readInternal
抛出:
IOException
org.springframework.http.converter.HttpMessageNotReadableException

writeInternal

protected void writeInternal(OAuth2AccessToken accessToken,
                             org.springframework.http.HttpOutputMessage outputMessage)
                      throws IOException,
                             org.springframework.http.converter.HttpMessageNotWritableException
指定者:
org.springframework.http.converter.AbstractHttpMessageConverter<OAuth2AccessToken> 中的 writeInternal
抛出:
IOException
org.springframework.http.converter.HttpMessageNotWritableException


Copyright © 2013. All rights reserved.