PageRenderTime 30ms CodeModel.GetById 14ms app.highlight 10ms RepoModel.GetById 2ms app.codeStats 0ms

/hazelcast/src/main/java/com/hazelcast/config/CredentialsFactoryConfig.java

https://bitbucket.org/gabral6_gmailcom/hazelcast
Java | 74 lines | 43 code | 16 blank | 15 comment | 0 complexity | 53bff103a9fa5d56c5f98e0eaad1253f MD5 | raw file
 1/*
 2 * Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved.
 3 *
 4 * Licensed under the Apache License, Version 2.0 (the "License");
 5 * you may not use this file except in compliance with the License.
 6 * You may obtain a copy of the License at
 7 *
 8 * http://www.apache.org/licenses/LICENSE-2.0
 9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package com.hazelcast.config;
18
19import com.hazelcast.security.ICredentialsFactory;
20
21import java.util.Properties;
22
23public class CredentialsFactoryConfig {
24
25    private String className = null;
26
27    private ICredentialsFactory implementation = null;
28
29    private Properties properties = new Properties();
30
31    public CredentialsFactoryConfig() {
32        super();
33    }
34
35    public CredentialsFactoryConfig(String className) {
36        super();
37        this.className = className;
38    }
39
40    public String getClassName() {
41        return className;
42    }
43
44    public void setClassName(String className) {
45        this.className = className;
46    }
47
48    public ICredentialsFactory getImplementation() {
49        return implementation;
50    }
51
52    public void setImplementation(ICredentialsFactory factoryImpl) {
53        this.implementation = factoryImpl;
54    }
55
56    public Properties getProperties() {
57        return properties;
58    }
59
60    public void setProperties(Properties properties) {
61        this.properties = properties;
62    }
63
64    @Override
65    public String toString() {
66        final StringBuilder sb = new StringBuilder();
67        sb.append("CredentialsFactoryConfig");
68        sb.append("{className='").append(className).append('\'');
69        sb.append(", implementation=").append(implementation);
70        sb.append(", properties=").append(properties);
71        sb.append('}');
72        return sb.toString();
73    }
74}