Search in sources :

Example 1 with TokenEncoding

use of com.hazelcast.config.security.TokenEncoding in project hazelcast by hazelcast.

the class YamlMemberDomConfigProcessor method handleToken.

@Override
protected void handleToken(RealmConfig realmConfig, Node node) {
    TokenEncoding encoding = TokenEncoding.getTokenEncoding(getAttribute(node, "encoding"));
    TokenIdentityConfig tic = new TokenIdentityConfig(encoding, getAttribute(node, "value"));
    realmConfig.setTokenIdentityConfig(tic);
}
Also used : TokenIdentityConfig(com.hazelcast.config.security.TokenIdentityConfig) TokenEncoding(com.hazelcast.config.security.TokenEncoding)

Example 2 with TokenEncoding

use of com.hazelcast.config.security.TokenEncoding in project hazelcast by hazelcast.

the class MemberDomConfigProcessor method handleToken.

protected void handleToken(RealmConfig realmConfig, Node node) {
    TokenEncoding encoding = TokenEncoding.getTokenEncoding(getAttribute(node, "encoding"));
    TokenIdentityConfig tic = new TokenIdentityConfig(encoding, getTextContent(node));
    realmConfig.setTokenIdentityConfig(tic);
}
Also used : TokenIdentityConfig(com.hazelcast.config.security.TokenIdentityConfig) TokenEncoding(com.hazelcast.config.security.TokenEncoding)

Aggregations

TokenEncoding (com.hazelcast.config.security.TokenEncoding)2 TokenIdentityConfig (com.hazelcast.config.security.TokenIdentityConfig)2