public class JAASAuthenticator extends Kerb5Authenticator implements CallbackHandler, SmbRenewableCredentials
Configuration.isDfsConvertToFQDN()
for a workaround.コンストラクタと説明 |
---|
JAASAuthenticator()
Create an authenticator using the JAAS service jcifs
This will require that a keytab is configured in this service.
|
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.
|
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 credentials
|
修飾子とタイプ | メソッドと説明 |
---|---|
Kerb5Authenticator |
clone() |
protected static void |
cloneInternal(JAASAuthenticator to,
JAASAuthenticator from)
Clone the context
|
Subject |
getSubject()
Get the
Subject object. |
void |
handle(Callback[] callbacks) |
boolean |
isAnonymous() |
boolean |
isGuest() |
void |
refresh() |
CredentialsInternal |
renew()
Renew the credentials
|
cloneInternal, createContext, equals, getLifeTime, getRealm, getService, getUser, getUserDomain, getUserLifeTime, hashCode, isPreferredMech, setForceFallback, setLifeTime, setRealm, setService, setSubject, setUser, setUserLifeTime, toString
cloneInternal, getAnsiHash, getName, getPassword, getSigningKey, getSpecifiedUserDomain, getUnicodeHash, getUsername, getUserSessionKey, getUserSessionKey, unwrap
createContext
getUserDomain, unwrap
public JAASAuthenticator()
public JAASAuthenticator(String serviceName)
serviceName
- JAAS configuration namepublic JAASAuthenticator(String serviceName, String domain, String username, String password)
serviceName
- JAAS configuration namedomain
- username
- password
- public JAASAuthenticator(String domain, String username, String password)
domain
- username
- password
- public JAASAuthenticator(Map<String,?> properties, String domain, String username, String password)
properties
- JAAS properties to setdomain
- username
- password
- public boolean isAnonymous()
isAnonymous
インタフェース内 Credentials
isAnonymous
クラス内 Kerb5Authenticator
Kerb5Authenticator.isAnonymous()
public boolean isGuest()
isGuest
インタフェース内 Credentials
isGuest
クラス内 NtlmPasswordAuthenticator
NtlmPasswordAuthenticator.isGuest()
public Kerb5Authenticator clone()
clone
インタフェース内 CredentialsInternal
clone
クラス内 Kerb5Authenticator
protected static void cloneInternal(JAASAuthenticator to, JAASAuthenticator from)
to
- from
- public void refresh() throws CIFSException
refresh
インタフェース内 CredentialsInternal
refresh
クラス内 Kerb5Authenticator
CIFSException
Kerb5Authenticator.refresh()
public Subject getSubject()
Subject
object.getSubject
インタフェース内 CredentialsInternal
getSubject
クラス内 Kerb5Authenticator
Kerb5Authenticator.getSubject()
public CredentialsInternal renew()
renew
インタフェース内 SmbRenewableCredentials
SmbRenewableCredentials.renew()
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
Copyright © 2018. All rights reserved.