AMLDAPCertStoreParameters.java revision bb78c648af50660f68c5799b974ce694f08681cd
/**
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2005 Sun Microsystems Inc. All Rights Reserved
*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing
* permission and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at opensso/legal/CDDLv1.0.txt.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* your own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* $Id: AMLDAPCertStoreParameters.java,v 1.3 2009/01/28 05:35:12 ww203982 Exp $
*
*/
/**
* Portions Copyrighted 2013 ForgeRock Inc
*/
/**
* Parameters used to access ldap cert store
*/
public class AMLDAPCertStoreParameters {
private int serverPort;
private boolean secureLdap = false;
static public final int ldap_version = 3;
private boolean doCRLCaching = true;
private boolean doCRLupdate = true;
/**
* @param server
* @param port
*/
serverName = server;
serverPort = port;
}
public static AMLDAPCertStoreParameters
return ldapParams;
}
/**
* Get host name
*/
public String getServerName() {
return serverName;
}
/**
* Get port number
*/
public int getPort() {
return serverPort;
}
/**
* Set ldap search start loc
*/
}
/**
* Get ldap search start loc
*/
public String getStartLoc() {
return startSearchLoc;
}
/**
* Set ldap user for bind
*/
}
/**
* Get ldap user for bind
*/
return ldapUser;
}
/**
* Set ldap password for bind
*/
}
/**
* Get ldap password for bind
*/
public String getPassword() {
return password;
}
/**
* Set URI params for CRL search
*/
}
/**
* Get URI params for CRL search
*/
public String getURIParams() {
return uriParams;
}
/**
* Set search filter for ldap search
*/
}
/**
* Get search filter for ldap search
*/
public String getSearchFilter() {
return searchFilter;
}
/**
* Set ldap port is secure
*/
secureLdap = secure;
}
/**
* Get ldap port is secure
*/
public boolean isSecure() {
return secureLdap;
}
/**
* Set secure socket factory
*/
sockFactory = sf;
}
/**
* Get secure socket factory
*/
public LDAPSocketFactory getSecureSocketFactory() {
return sockFactory;
}
/**
* @return the doCRLCaching
*/
public boolean isDoCRLCaching() {
return doCRLCaching;
}
/**
* @param doCRLCaching the doCRLCaching to set
*/
public void setDoCRLCaching(boolean doCRLCaching) {
this.doCRLCaching = doCRLCaching;
}
/**
* @return the doCRLupdate
*/
public boolean isDoUpdateCRLs() {
return doCRLupdate;
}
/**
* @param doCRLupdate the doCRLupdate to set
*/
public void setDoCRLUpdate(boolean doCRLupdate) {
this.doCRLupdate = doCRLupdate;
}
}