/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. package com.hazelcast.config;
  17. import com.hazelcast.security.ICredentialsFactory;
  18. import java.util.Properties;
  19. public class CredentialsFactoryConfig {
  20. private String className = null;
  21. private ICredentialsFactory implementation = null;
  22. private Properties properties = new Properties();
  23. public CredentialsFactoryConfig() {
  24. super();
  25. }
  26. public CredentialsFactoryConfig(String className) {
  27. super();
  28. this.className = className;
  29. }
  30. public String getClassName() {
  31. return className;
  32. }
  33. public void setClassName(String className) {
  34. this.className = className;
  35. }
  36. public ICredentialsFactory getImplementation() {
  37. return implementation;
  38. }
  39. public void setImplementation(ICredentialsFactory factoryImpl) {
  40. this.implementation = factoryImpl;
  41. }
  42. public Properties getProperties() {
  43. return properties;
  44. }
  45. public void setProperties(Properties properties) {
  46. this.properties = properties;
  47. }
  48. @Override
  49. public String toString() {
  50. final StringBuilder sb = new StringBuilder();
  51. sb.append("CredentialsFactoryConfig");
  52. sb.append("{className='").append(className).append('\'');
  53. sb.append(", implementation=").append(implementation);
  54. sb.append(", properties=").append(properties);
  55. sb.append('}');
  56. return sb.toString();
  57. }
  58. }