1 16 package org.outerj.daisy.repository.commonimpl.user; 17 18 import org.outerj.daisy.repository.user.AuthenticationSchemeInfo; 19 import org.outerx.daisy.x10.AuthenticationSchemeDocument; 20 21 public class AuthenticationSchemeInfoImpl implements AuthenticationSchemeInfo { 22 private final String name; 23 private final String description; 24 25 public AuthenticationSchemeInfoImpl(String name, String description) { 26 this.name = name; 27 this.description = description; 28 } 29 30 public String getName() { 31 return name; 32 } 33 34 public String getDescription() { 35 return description; 36 } 37 38 public AuthenticationSchemeDocument getXml() { 39 AuthenticationSchemeDocument schemeDocument = AuthenticationSchemeDocument.Factory.newInstance(); 40 AuthenticationSchemeDocument.AuthenticationScheme schemeXml = schemeDocument.addNewAuthenticationScheme(); 41 schemeXml.setName(name); 42 schemeXml.setDescription(description); 43 return schemeDocument; 44 } 45 } 46 | Popular Tags |