equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
120 } |
120 } |
121 |
121 |
122 /** |
122 /** |
123 * Get the attribute value. |
123 * Get the attribute value. |
124 */ |
124 */ |
125 public Object get(String name) throws IOException { |
125 public PublicKey get(String name) throws IOException { |
126 if (name.equalsIgnoreCase(KEY)) { |
126 if (name.equalsIgnoreCase(KEY)) { |
127 return(key); |
127 return(key); |
128 } else { |
128 } else { |
129 throw new IOException("Attribute name not recognized by " + |
129 throw new IOException("Attribute name not recognized by " + |
130 "CertAttrSet: CertificateX509Key."); |
130 "CertAttrSet: CertificateX509Key."); |