52.9. 구성 요소 구성 및 인증 활성화

Box를 사용한 인증의 경우 다음 예와 같이 구성 요소의 인증 속성을 설정합니다.

BoxConfiguration configuration = new BoxConfiguration();
configuration.setClientId("clientId");
configuration.setClientSecret("clientSecret");
configuration.setUserName("userName");
configuration.setUserPassword("userPassword");

// add BoxComponent to Camel context
BoxComponent component = new BoxComponent(context);
component.setConfiguration(configuration);
context.addComponent("box", component);