org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer Java Examples
The following examples show how to use
org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EnableResourceServerCondition.java From cola-cloud with MIT License | 6 votes |
@Override public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) { String[] enablers = context.getBeanFactory() .getBeanNamesForAnnotation(EnableResourceServer.class); ConditionMessage.Builder message = ConditionMessage .forCondition("@EnableResourceServer Condition"); if (enablers != null && enablers.length > 0) { return ConditionOutcome.match(message .found("@EnableResourceServer annotation on Application") .items(enablers)); } return ConditionOutcome.noMatch(message.didNotFind( "@EnableResourceServer annotation " + "on Application") .atAll()); }