Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.springframework.security.oauth2.provider.code;
 
Base implementation for authorization code services that generates a random-value authorization code.

Author(s):
Ryan Heaton
Dave Syer
public abstract class RandomValueAuthorizationCodeServices implements AuthorizationCodeServices {
	protected abstract void store(String codeAuthorizationRequestHolder authentication);
	protected abstract AuthorizationRequestHolder remove(String code);
		store(codeauthentication);
		return code;
	}
		AuthorizationRequestHolder auth = this.remove(code);
		if (auth == null) {
			throw new InvalidGrantException("Invalid authorization code: " + code);
		}
		return auth;
	}
New to GrepCode? Check out our FAQ X