| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.sdk.requests; |
| | |
| | | |
| | | |
| | | |
| | | /** |
| | | * Creates a new generic bind request that is an exact copy of the |
| | | * provided request. |
| | | * |
| | | * @param genericBindRequest |
| | | * The generic bind request to be copied. |
| | | * @throws NullPointerException |
| | | * If {@code genericBindRequest} was {@code null} . |
| | | */ |
| | | GenericBindRequestImpl( |
| | | final GenericBindRequest genericBindRequest) |
| | | throws NullPointerException |
| | | { |
| | | super(genericBindRequest); |
| | | this.name = genericBindRequest.getName(); |
| | | this.authenticationType = genericBindRequest.getAuthenticationType(); |
| | | this.authenticationValue = genericBindRequest.getAuthenticationValue(); |
| | | this.bindClient = null; // Create a new bind client each time. |
| | | } |
| | | |
| | | |
| | | |
| | | public BindClient createBindClient(final String serverName) |
| | | throws ErrorResultException |
| | | { |