use of org.jgroups.auth.X509Token in project JGroups by belaban.
the class AUTH method init.
public void init() throws Exception {
super.init();
if (auth_token == null)
throw new IllegalStateException("no authentication mechanism configured");
if (auth_token instanceof X509Token) {
X509Token tmp = (X509Token) auth_token;
tmp.setCertificate();
}
auth_token.init();
}
use of org.jgroups.auth.X509Token in project JGroups by belaban.
the class SizeTest method testAuthHeader.
public static void testAuthHeader() throws Exception {
_testSize(new AuthHeader(new FixedMembershipToken("192.168.1.5[7800],192.168.1.3[7800]")));
_testSize(new AuthHeader(new RegexMembership()));
X509Token tok = new X509Token().encryptedToken(new byte[] { 'b', 'e', 'l', 'a' });
_testSize(new AuthHeader(tok));
}
Aggregations