equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 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 |
204 |
204 |
205 try { |
205 try { |
206 SubjectAlternativeNameExtension subjAltNameExt |
206 SubjectAlternativeNameExtension subjAltNameExt |
207 = icert.getSubjectAlternativeNameExtension(); |
207 = icert.getSubjectAlternativeNameExtension(); |
208 if (subjAltNameExt != null) { |
208 if (subjAltNameExt != null) { |
209 GeneralNames gNames = (GeneralNames) |
209 GeneralNames gNames = subjAltNameExt.get( |
210 subjAltNameExt.get(SubjectAlternativeNameExtension.SUBJECT_NAME); |
210 SubjectAlternativeNameExtension.SUBJECT_NAME); |
211 for (Iterator<GeneralName> t = gNames.iterator(); |
211 for (Iterator<GeneralName> t = gNames.iterator(); |
212 t.hasNext(); ) { |
212 t.hasNext(); ) { |
213 GeneralNameInterface gName = t.next().getName(); |
213 GeneralNameInterface gName = t.next().getName(); |
214 subjectNamesTraversed.add(gName); |
214 subjectNamesTraversed.add(gName); |
215 } |
215 } |
234 * |
234 * |
235 * Note that this is a SMART clone. Not all fields are fully copied, |
235 * Note that this is a SMART clone. Not all fields are fully copied, |
236 * because some of them will |
236 * because some of them will |
237 * not have their contents modified by subsequent calls to updateState. |
237 * not have their contents modified by subsequent calls to updateState. |
238 */ |
238 */ |
|
239 @SuppressWarnings("unchecked") // Safe casts assuming clone() works correctly |
239 public Object clone() { |
240 public Object clone() { |
240 try { |
241 try { |
241 ForwardState clonedState = (ForwardState) super.clone(); |
242 ForwardState clonedState = (ForwardState) super.clone(); |
242 |
243 |
243 /* clone checkers, if cloneable */ |
244 /* clone checkers, if cloneable */ |