org.springframework.security.oauth2.client.filter.state
Interface StateKeyGenerator

All Known Implementing Classes:
DefaultStateKeyGenerator

public interface StateKeyGenerator

Stategy for generating random keys for state. The state key is important protection for client apps against cross-site request forgery.

Author:
Dave Syer

Method Summary
 String generateKey(OAuth2ProtectedResourceDetails resource)
          Generate a key.
 

Method Detail

generateKey

String generateKey(OAuth2ProtectedResourceDetails resource)
Generate a key.

Parameters:
resource - the resource to generate the key for
Returns:
a unique key for the state. Never null.


Copyright © 2012. All Rights Reserved.