jdk/src/share/classes/sun/security/x509/PolicyConstraintsExtension.java
changeset 10336 0bb1999251f8
parent 5506 202f599c92aa
child 25522 10d789df41bb
equal deleted inserted replaced
10335:3c7eda3ab2f5 10336:0bb1999251f8
     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
   229     }
   229     }
   230 
   230 
   231     /**
   231     /**
   232      * Get the attribute value.
   232      * Get the attribute value.
   233      */
   233      */
   234     public Object get(String name) throws IOException {
   234     public Integer get(String name) throws IOException {
   235         if (name.equalsIgnoreCase(REQUIRE)) {
   235         if (name.equalsIgnoreCase(REQUIRE)) {
   236             return new Integer(require);
   236             return new Integer(require);
   237         } else if (name.equalsIgnoreCase(INHIBIT)) {
   237         } else if (name.equalsIgnoreCase(INHIBIT)) {
   238             return new Integer(inhibit);
   238             return new Integer(inhibit);
   239         } else {
   239         } else {