ldap认证支持android吗,LDAPCertStoreParameters

LDAPCertStoreParameters

public

class

LDAPCertStoreParameters

extends Object↳

java.security.cert.LDAPCertStoreParameters

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.

See also:

Summary

Public constructors

Creates an instance of LDAPCertStoreParameters with the

specified parameter values.

Creates an instance of LDAPCertStoreParameters with the

specified server name and a default port of 389.

Creates an instance of LDAPCertStoreParameters with the

default parameter values (server name "localhost", port 389).

Public methods

Returns a copy of this object.

int

Returns the port number of the LDAP server.

Returns the DNS name of the LDAP server.

Returns a formatted string describing the parameters.

Inherited methods

Creates and returns a copy of this object.

boolean

Indicates whether some other object is "equal to" this one.

void

Called by the garbage collector on an object when garbage collection

determines that there are no more references to the object.

final

Class>

Returns the runtime class of this Object.

int

Returns a hash code value for the object.

final

void

Wakes up a single thread that is waiting on this object's

monitor.

final

void

Wakes up all threads that are waiting on this object's monitor.

Returns a string representation of the object.

final

void

wait(long timeout, int nanos)

Causes the current thread to wait until another thread invokes the

final

void

wait(long timeout)

Causes the current thread to wait until either another thread invokes the

final

void

Causes the current thread to wait until another thread invokes the

abstract

Object

Makes a copy of this CertStoreParameters.

Public constructors

LDAPCertStoreParameters

public LDAPCertStoreParameters (String serverName,

int port)

Creates an instance of LDAPCertStoreParameters with the

specified parameter values.

Parameters

serverName

String: the DNS name of the LDAP server

port

int: the port number of the LDAP server

Throws

LDAPCertStoreParameters

public LDAPCertStoreParameters (String serverName)

Creates an instance of LDAPCertStoreParameters with the

specified server name and a default port of 389.

Parameters

serverName

String: the DNS name of the LDAP server

Throws

LDAPCertStoreParameters

public LDAPCertStoreParameters ()

Creates an instance of LDAPCertStoreParameters with the

default parameter values (server name "localhost", port 389).

Public methods

clone

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.

Returns

the copy

getPort

public int getPort ()

Returns the port number of the LDAP server.

Returns

int

the port number

getServerName

public String getServerName ()

Returns the DNS name of the LDAP server.

Returns

the name (not null)

toString

public String toString ()

Returns a formatted string describing the parameters.

Returns

a formatted string describing the parameters

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值