jdk/src/share/classes/com/sun/jndi/ldap/BasicControl.java
changeset 14930 d05f028770b9
parent 7536 73bcb3cc8568
child 14932 cf325f3b80b1
equal deleted inserted replaced
14929:59377f4b9919 14930:d05f028770b9
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2012, 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
    79      */
    79      */
    80     public BasicControl(String id, boolean criticality, byte[] value) {
    80     public BasicControl(String id, boolean criticality, byte[] value) {
    81         this.id = id;
    81         this.id = id;
    82         this.criticality = criticality;
    82         this.criticality = criticality;
    83         if (value != null) {
    83         if (value != null) {
    84             this.value = value;
    84             this.value = value.clone();
    85         }
    85         }
    86     }
    86     }
    87 
    87 
    88     /**
    88     /**
    89       * Retrieves the control's object identifier string.
    89       * Retrieves the control's object identifier string.