org.springframework.security.oauth2.provider.code
Class JdbcAuthorizationCodeServices

java.lang.Object
  extended by org.springframework.security.oauth2.provider.code.RandomValueAuthorizationCodeServices
      extended by org.springframework.security.oauth2.provider.code.JdbcAuthorizationCodeServices
All Implemented Interfaces:
AuthorizationCodeServices

public class JdbcAuthorizationCodeServices
extends RandomValueAuthorizationCodeServices

Implementation of authorization code services that stores the codes and authentication in a database.

Author:
Ken Dombeck, Dave Syer

Constructor Summary
JdbcAuthorizationCodeServices(DataSource dataSource)
           
 
Method Summary
 AuthorizationRequestHolder remove(String code)
           
 void setDeleteAuthenticationSql(String deleteAuthenticationSql)
           
 void setInsertAuthenticationSql(String insertAuthenticationSql)
           
 void setSelectAuthenticationSql(String selectAuthenticationSql)
           
protected  void store(String code, AuthorizationRequestHolder authentication)
           
 
Methods inherited from class org.springframework.security.oauth2.provider.code.RandomValueAuthorizationCodeServices
consumeAuthorizationCode, createAuthorizationCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcAuthorizationCodeServices

public JdbcAuthorizationCodeServices(DataSource dataSource)
Method Detail

store

protected void store(String code,
                     AuthorizationRequestHolder authentication)
Specified by:
store in class RandomValueAuthorizationCodeServices

remove

public AuthorizationRequestHolder remove(String code)
Specified by:
remove in class RandomValueAuthorizationCodeServices

setSelectAuthenticationSql

public void setSelectAuthenticationSql(String selectAuthenticationSql)

setInsertAuthenticationSql

public void setInsertAuthenticationSql(String insertAuthenticationSql)

setDeleteAuthenticationSql

public void setDeleteAuthenticationSql(String deleteAuthenticationSql)


Copyright © 2012. All Rights Reserved.