core/src/main/java/org/springframework/security/authorization/AuthorityReactiveAuthorizationManager.java
public static <T> AuthorityReactiveAuthorizationManager<T> hasAuthority(String authority) {
		Assert.notNull(authority, "authority cannot be null");
		return new AuthorityReactiveAuthorizationManager<>(authority);
	}
public static <T> AuthorityReactiveAuthorizationManager<T> hasAuthority(String authority) {
		Assert.notNull(authority, "authority cannot be null");
		return new AuthorityReactiveAuthorizationManager<>(authority);
	}
public static < T > AuthorityReactiveAuthorizationManager < T > hasAuthority ( String authority ) { Assert . notNull ( authority , "authority cannot be null" ) ; return new AuthorityReactiveAuthorizationManager <> ( authority ) ; }
Creates an instance of {@link AuthorityReactiveAuthorizationManager} with the
provided authority.

@param authority the authority to check for
@param <T> the type of object being authorized
@return the new instance
Creates an instance of { @link AuthorityReactiveAuthorizationManager } with the provided authority .