パッケージ jcifs.smb
クラス JAASAuthenticator
- java.lang.Object
-
- jcifs.smb.NtlmPasswordAuthenticator
-
- jcifs.smb.Kerb5Authenticator
-
- jcifs.smb.JAASAuthenticator
-
- すべての実装されたインタフェース:
Serializable,Cloneable,Principal,CallbackHandler,Credentials,CredentialsInternal,SmbRenewableCredentials
public class JAASAuthenticator extends Kerb5Authenticator implements CallbackHandler, SmbRenewableCredentials
JAAS kerberos authenticator Either configure JAAS for credential caching or reuse a single instance of this authenticator -otherwise you won't get proper ticket caching. Be advised that short/NetBIOS name usage is not supported with this authenticator. Always specify full FQDNs/Realm. This can be a problem if using DFS in it's default configuration as that still returns referrals in short form. See KB-244380 for compatible server configuration. SeeConfiguration.isDfsConvertToFQDN()for a workaround.- 作成者:
- mbechler
- 関連項目:
- 直列化された形式
-
-
ネストされたクラスの概要
-
クラスから継承されたネストされたクラス/インタフェース jcifs.smb.NtlmPasswordAuthenticator
NtlmPasswordAuthenticator.AuthenticationType
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 JAASAuthenticator()Create an authenticator using the JAAS service jcifs This will require that a keytab is configured in this service.JAASAuthenticator(String serviceName)Create an authenticator using the given JAAS service This will require that a keytab is configured in this service.JAASAuthenticator(String domain, String username, String password)Create an authenticator using the given credentials This will create a JAAS configuration that is used to obtain a TGT.JAASAuthenticator(String serviceName, String domain, String username, String password)Create an authenticator using the given JAAS service and the specified credentialsJAASAuthenticator(Map<String,?> properties, String domain, String username, String password)Create an authenticator using the given credentials This will create a JAAS configuration with the specified properties that is used to obtain a TGT.
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 Kerb5Authenticatorclone()protected static voidcloneInternal(JAASAuthenticator to, JAASAuthenticator from)Clone the contextSubjectgetSubject()Get theSubjectobject.voidhandle(Callback[] callbacks)booleanisAnonymous()booleanisGuest()voidrefresh()CredentialsInternalrenew()Renew the credentials-
クラスから継承されたメソッド jcifs.smb.Kerb5Authenticator
cloneInternal, createContext, equals, getLifeTime, getRealm, getService, getUser, getUserDomain, getUserLifeTime, hashCode, isPreferredMech, setForceFallback, setLifeTime, setRealm, setService, setSubject, setUser, setUserLifeTime, toString
-
クラスから継承されたメソッド jcifs.smb.NtlmPasswordAuthenticator
cloneInternal, getAnsiHash, getName, getNTHash, getPassword, getSigningKey, getSpecifiedUserDomain, getUnicodeHash, getUsername, getUserSessionKey, getUserSessionKey, guessAuthenticationType, unwrap
-
インタフェースから継承されたメソッド jcifs.Credentials
getUserDomain, unwrap
-
インタフェースから継承されたメソッド jcifs.smb.CredentialsInternal
createContext
-
-
-
-
コンストラクタの詳細
-
JAASAuthenticator
public JAASAuthenticator()
Create an authenticator using the JAAS service jcifs This will require that a keytab is configured in this service.
-
JAASAuthenticator
public JAASAuthenticator(String serviceName)
Create an authenticator using the given JAAS service This will require that a keytab is configured in this service.- パラメータ:
serviceName- JAAS configuration name
-
JAASAuthenticator
public JAASAuthenticator(String serviceName, String domain, String username, String password)
Create an authenticator using the given JAAS service and the specified credentials- パラメータ:
serviceName- JAAS configuration namedomain-username-password-
-
JAASAuthenticator
public JAASAuthenticator(String domain, String username, String password)
Create an authenticator using the given credentials This will create a JAAS configuration that is used to obtain a TGT.- パラメータ:
domain-username-password-
-
JAASAuthenticator
public JAASAuthenticator(Map<String,?> properties, String domain, String username, String password)
Create an authenticator using the given credentials This will create a JAAS configuration with the specified properties that is used to obtain a TGT.- パラメータ:
properties- JAAS properties to setdomain-username-password-
-
-
メソッドの詳細
-
isAnonymous
public boolean isAnonymous()
- 定義:
isAnonymousインタフェース内Credentials- オーバーライド:
isAnonymousクラス内Kerb5Authenticator- 戻り値:
- whether these are anonymous credentials
- 関連項目:
Kerb5Authenticator.isAnonymous()
-
isGuest
public boolean isGuest()
- 定義:
isGuestインタフェース内Credentials- オーバーライド:
isGuestクラス内NtlmPasswordAuthenticator- 戻り値:
- whether these are guest credentials
- 関連項目:
NtlmPasswordAuthenticator.isGuest()
-
clone
public Kerb5Authenticator clone()
- 定義:
cloneインタフェース内CredentialsInternal- オーバーライド:
cloneクラス内Kerb5Authenticator- 戻り値:
- a copy of the credentials
-
cloneInternal
protected static void cloneInternal(JAASAuthenticator to, JAASAuthenticator from)
Clone the context- パラメータ:
to-from-
-
refresh
public void refresh() throws CIFSException- 定義:
refreshインタフェース内CredentialsInternal- オーバーライド:
refreshクラス内Kerb5Authenticator- 例外:
CIFSException- 関連項目:
Kerb5Authenticator.refresh()
-
getSubject
public Subject getSubject()
Get theSubjectobject.- 定義:
getSubjectインタフェース内CredentialsInternal- オーバーライド:
getSubjectクラス内Kerb5Authenticator- 戻り値:
- Subject represents the user who perform Kerberos authentication. It contains the tickets retrieve from KDC.
- 関連項目:
Kerb5Authenticator.getSubject()
-
renew
public CredentialsInternal renew()
Renew the credentials- 定義:
renewインタフェース内SmbRenewableCredentials- 戻り値:
- the renewed credentials
- 関連項目:
SmbRenewableCredentials.renew()
-
handle
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
-
-