2017-11-29 11 views
0

AUTH 프로토콜을 프로그래밍 방식으로 초기화하려고 시도하지만 계속 java.lang.IllegalArgumentException: field auth_class not found을 가져 오십시오.프로그래밍 방식으로 JGroups AUTH 프로토콜을 초기화하는 방법

분명히 AUTH.java에는 auth_class 필드가 없지만이 속성을 가진 주석 기가 있습니다.

new ASYM_ENCRYPT() 
     .setValue("use_external_key_exchange", true) 
     .setValue("encrypt_entire_message", true) 
     .setValue("sym_keylength", 256) 
     .setValue("sym_algorithm", "AES") 
     .setValue("asym_keylength", 512) 
     .setValue("asym_algorithm", "RSA"), 
new AUTH() 
     .setValue("auth_class", "org.jgroups.auth.X509Token") 
     .setValue("keystore_path", "/tmp/cert.jks") 
     .setValue("keystore_password", "changeit") 
     .setValue("cert_alias", "mycert") 
     .setValue("cert_password", "changeit") 
     .setValue("auth_value", "secret") 
     .setValue("cipher_type", "RSA"), 
new GMS() 
     .setValue("print_local_addr", true) 
     .setValue("join_timeout", 2000) 

그래서 어떻게 X509Token 적절한 특성을 가진 AUTH 초기화 할 수 있습니다 : 다음 프로토콜 스택의 조각은 무엇입니까?

AUTH auth=new AUTH() .setValue("keystore_path", "/tmp/cert.jks") .setValue("keystore_password", "changeit") .setValue("cert_alias", "mycert") .setValue("cert_password", "changeit") .setValue("auth_value", "secret") .setValue("cipher_type", "RSA"); auth.setAuthClass("org.jgroups.auth.X509Token");

: 당신이 세터를 사용해야합니다 있도록

답변

0

auth_class

는 속성 아니다