Initial import.
[clinton/mirror/jspi/.git] / jspi / src / main / java / de / lohndirekt / print / attribute / ipp / printerdesc / supported / UriAuthenticationSupported.java
CommitLineData
3ea135bb 1/**\r
2 * Copyright (C) 2003 <a href="http://www.lohndirekt.de/">lohndirekt.de</a>\r
3 *\r
4 * This library is free software; you can redistribute it and/or\r
5 * modify it under the terms of the GNU Lesser General Public\r
6 * License as published by the Free Software Foundation; either\r
7 * version 2.1 of the License, or (at your option) any later version.\r
8 * \r
9 * This library is distributed in the hope that it will be useful,\r
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\r
12 * Lesser General Public License for more details.\r
13 * \r
14 * You should have received a copy of the GNU Lesser General Public\r
15 * License along with this library; if not, write to the Free Software\r
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
17 * \r
18 */\r
19package de.lohndirekt.print.attribute.ipp.printerdesc.supported;\r
20\r
21import java.util.Locale;\r
22\r
23import javax.print.attribute.SupportedValuesAttribute;\r
24import javax.print.attribute.TextSyntax;\r
25\r
26public class UriAuthenticationSupported extends TextSyntax implements SupportedValuesAttribute {\r
27\r
28 public static UriAuthenticationSupported NONE = new UriAuthenticationSupported("none", Locale.getDefault());\r
29 public static UriAuthenticationSupported REQUESTING_USER_NAME =\r
30 new UriAuthenticationSupported("requesting-user-name", Locale.getDefault());\r
31 public static UriAuthenticationSupported BASIC = new UriAuthenticationSupported("basic", Locale.getDefault());\r
32 public static UriAuthenticationSupported DIGEST = new UriAuthenticationSupported("digest", Locale.getDefault());\r
33 public static UriAuthenticationSupported CERTIFICATION = new UriAuthenticationSupported("certification", Locale.getDefault());\r
34\r
35 /**\r
36 * @param value\r
37 * @param locale\r
38 */\r
39 public UriAuthenticationSupported(String value, Locale locale) {\r
40 super(value, locale);\r
41 }\r
42\r
43 /**\r
44 *\r
45 */\r
46\r
47 public Class getCategory() {\r
48 return this.getClass();\r
49 }\r
50\r
51 /**\r
52 *\r
53 */\r
54\r
55 public String getName() {\r
56 return UriAuthenticationSupported.getIppName();\r
57 }\r
58\r
59 /**\r
60 * @return\r
61 */\r
62 public static String getIppName() {\r
63 return "uri-authentication-supported";\r
64 }\r
65\r
66}\r