equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2018, 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 |
154 else if (inputName.getType() != NAME_OID) |
154 else if (inputName.getType() != NAME_OID) |
155 constraintType = NAME_DIFF_TYPE; |
155 constraintType = NAME_DIFF_TYPE; |
156 else if (this.equals((OIDName)inputName)) |
156 else if (this.equals((OIDName)inputName)) |
157 constraintType = NAME_MATCH; |
157 constraintType = NAME_MATCH; |
158 else |
158 else |
159 //widens and narrows not defined in RFC2459 for OIDName (aka registeredID) |
159 //widens and narrows not defined in RFC 5280 for OIDName (aka registeredID) |
160 throw new UnsupportedOperationException("Narrowing and widening are not supported for OIDNames"); |
160 throw new UnsupportedOperationException("Narrowing and widening are not supported for OIDNames"); |
161 return constraintType; |
161 return constraintType; |
162 } |
162 } |
163 |
163 |
164 /** |
164 /** |