LDAPCertStoreParameters
Stay organized with collections
Save and categorize content based on your preferences.
Parameters used as input for the LDAP CertStore
algorithm.
This class is used to provide necessary configuration parameters (server
name and port number) to implementations of the LDAP CertStore
algorithm.
Concurrent Access
Unless otherwise specified, the methods defined in this class are not
thread-safe. Multiple threads that need to access a single
object concurrently should synchronize amongst themselves and
provide the necessary locking. Multiple threads each manipulating
separate objects need not synchronize.
Public Constructor Summary
|
|
|
LDAPCertStoreParameters( String serverName)
Creates an instance of LDAPCertStoreParameters with the
specified server name and a default port of 389.
|
|
LDAPCertStoreParameters()
Creates an instance of LDAPCertStoreParameters with the
default parameter values (server name "localhost", port 389).
|
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals( Object obj)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long timeout, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long timeout)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
Public Constructors
public
LDAPCertStoreParameters
(String serverName, int port)
Creates an instance of LDAPCertStoreParameters
with the
specified parameter values.
Parameters
serverName |
the DNS name of the LDAP server |
port |
the port number of the LDAP server |
public
LDAPCertStoreParameters
(String serverName)
Creates an instance of LDAPCertStoreParameters
with the
specified server name and a default port of 389.
Parameters
serverName |
the DNS name of the LDAP server |
public
LDAPCertStoreParameters
()
Creates an instance of LDAPCertStoreParameters
with the
default parameter values (server name "localhost", port 389).
Public Methods
public
Object
clone
()
Returns a copy of this object. Changes to the copy will not affect
the original and vice versa.
Note: this method currently performs a shallow copy of the object
(simply calls Object.clone()
). This may be changed in a
future revision to perform a deep copy if new parameters are added
that should not be shared.
public
int
getPort
()
Returns the port number of the LDAP server.
public
String
getServerName
()
Returns the DNS name of the LDAP server.
public
String
toString
()
Returns a formatted string describing the parameters.
Returns
- a formatted string describing the parameters
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eLDAPCertStoreParameters\u003c/code\u003e provides configuration for accessing certificate stores via LDAP.\u003c/p\u003e\n"],["\u003cp\u003eIt allows specifying the LDAP server's name and port number, with defaults for localhost and port 389.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes methods to retrieve the server name and port, and to create a copy of the parameter object.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLDAPCertStoreParameters\u003c/code\u003e methods are not inherently thread-safe and require external synchronization if accessed concurrently by multiple threads.\u003c/p\u003e\n"]]],["`LDAPCertStoreParameters` configures the LDAP `CertStore` algorithm with server name and port. Instances can be created with a server name and port, just a server name (default port 389), or defaults (\"localhost\", 389). Methods retrieve the server name and port, clone the object, or provide a string representation. Methods are not thread-safe unless synchronized externally. Constructors throw `NullPointerException` if the server name is `null`.\n"],null,["public class **LDAPCertStoreParameters** extends [Object](../../../../reference/java/lang/Object.html) \nimplements [CertStoreParameters](../../../../reference/java/security/cert/CertStoreParameters.html) \nParameters used as input for the LDAP `CertStore` algorithm.\n\n\nThis class is used to provide necessary configuration parameters (server\nname and port number) to implementations of the LDAP `CertStore`\nalgorithm.\n\n\n**Concurrent Access**\n\n\nUnless otherwise specified, the methods defined in this class are not\nthread-safe. Multiple threads that need to access a single\nobject concurrently should synchronize amongst themselves and\nprovide the necessary locking. Multiple threads each manipulating\nseparate objects need not synchronize. \n\nSee Also\n\n- [CertStore](../../../../reference/java/security/cert/CertStore.html) \n\nPublic Constructor Summary\n\n|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [LDAPCertStoreParameters](../../../../reference/java/security/cert/LDAPCertStoreParameters.html#LDAPCertStoreParameters(java.lang.String,%20int))([String](../../../../reference/java/lang/String.html) serverName, int port) Creates an instance of `LDAPCertStoreParameters` with the specified parameter values. |\n| | [LDAPCertStoreParameters](../../../../reference/java/security/cert/LDAPCertStoreParameters.html#LDAPCertStoreParameters(java.lang.String))([String](../../../../reference/java/lang/String.html) serverName) Creates an instance of `LDAPCertStoreParameters` with the specified server name and a default port of 389. |\n| | [LDAPCertStoreParameters](../../../../reference/java/security/cert/LDAPCertStoreParameters.html#LDAPCertStoreParameters())() Creates an instance of `LDAPCertStoreParameters` with the default parameter values (server name \"localhost\", port 389). |\n\nPublic Method Summary\n\n|-------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Object](../../../../reference/java/lang/Object.html) | [clone](../../../../reference/java/security/cert/LDAPCertStoreParameters.html#clone())() Returns a copy of this object. |\n| int | [getPort](../../../../reference/java/security/cert/LDAPCertStoreParameters.html#getPort())() Returns the port number of the LDAP server. |\n| [String](../../../../reference/java/lang/String.html) | [getServerName](../../../../reference/java/security/cert/LDAPCertStoreParameters.html#getServerName())() Returns the DNS name of the LDAP server. |\n| [String](../../../../reference/java/lang/String.html) | [toString](../../../../reference/java/security/cert/LDAPCertStoreParameters.html#toString())() Returns a formatted string describing the parameters. |\n\nInherited Method Summary \nFrom class [java.lang.Object](../../../../reference/java/lang/Object.html) \n\n|----------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Object](../../../../reference/java/lang/Object.html) | [clone](../../../../reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |\n| boolean | [equals](../../../../reference/java/lang/Object.html#equals(java.lang.Object))([Object](../../../../reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |\n| void | [finalize](../../../../reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |\n| final [Class](../../../../reference/java/lang/Class.html)\\\u003c?\\\u003e | [getClass](../../../../reference/java/lang/Object.html#getClass())() Returns the unique instance of [Class](../../../../reference/java/lang/Class.html) that represents this object's class. |\n| int | [hashCode](../../../../reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |\n| final void | [notify](../../../../reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |\n| final void | [notifyAll](../../../../reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |\n| [String](../../../../reference/java/lang/String.html) | [toString](../../../../reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |\n| final void | [wait](../../../../reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |\n| final void | [wait](../../../../reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |\n| final void | [wait](../../../../reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |\n\nFrom interface [java.security.cert.CertStoreParameters](../../../../reference/java/security/cert/CertStoreParameters.html) \n\n|----------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Object](../../../../reference/java/lang/Object.html) | [clone](../../../../reference/java/security/cert/CertStoreParameters.html#clone())() Makes a copy of this `CertStoreParameters`. |\n\nPublic Constructors \n\npublic\n**LDAPCertStoreParameters**\n([String](../../../../reference/java/lang/String.html) serverName, int port) \nCreates an instance of `LDAPCertStoreParameters` with the\nspecified parameter values. \n\nParameters\n\n| serverName | the DNS name of the LDAP server |\n| port | the port number of the LDAP server |\n|------------|------------------------------------|\n\nThrows\n\n| [NullPointerException](../../../../reference/java/lang/NullPointerException.html) | if `serverName` is `null` |\n|-----------------------------------------------------------------------------------|---------------------------|\n\npublic\n**LDAPCertStoreParameters**\n([String](../../../../reference/java/lang/String.html) serverName) \nCreates an instance of `LDAPCertStoreParameters` with the\nspecified server name and a default port of 389. \n\nParameters\n\n| serverName | the DNS name of the LDAP server |\n|------------|---------------------------------|\n\nThrows\n\n| [NullPointerException](../../../../reference/java/lang/NullPointerException.html) | if `serverName` is `null` |\n|-----------------------------------------------------------------------------------|---------------------------|\n\npublic\n**LDAPCertStoreParameters**\n() \nCreates an instance of `LDAPCertStoreParameters` with the\ndefault parameter values (server name \"localhost\", port 389).\n\nPublic Methods \n\npublic [Object](../../../../reference/java/lang/Object.html)\n**clone**\n() \nReturns a copy of this object. Changes to the copy will not affect\nthe original and vice versa.\n\n\nNote: this method currently performs a shallow copy of the object\n(simply calls `Object.clone()`). This may be changed in a\nfuture revision to perform a deep copy if new parameters are added\nthat should not be shared. \n\nReturns\n\n- the copy \n\npublic int\n**getPort**\n() \nReturns the port number of the LDAP server. \n\nReturns\n\n- the port number \n\npublic [String](../../../../reference/java/lang/String.html)\n**getServerName**\n() \nReturns the DNS name of the LDAP server. \n\nReturns\n\n- the name (not `null`) \n\npublic [String](../../../../reference/java/lang/String.html)\n**toString**\n() \nReturns a formatted string describing the parameters. \n\nReturns\n\n- a formatted string describing the parameters"]]