Package | Description |
---|---|
jcifs | |
jcifs.context | |
jcifs.dcerpc | |
jcifs.http | |
jcifs.https | |
jcifs.netbios | |
jcifs.ntlmssp | |
jcifs.smb |
Modifier and Type | Method and Description |
---|---|
CIFSContext |
CIFSContext.withAnonymousCredentials() |
CIFSContext |
CIFSContext.withCredentials(SmbCredentials creds) |
CIFSContext |
CIFSContext.withDefaultCredentials() |
CIFSContext |
CIFSContext.withGuestCrendentials() |
Modifier and Type | Method and Description |
---|---|
byte[] |
SmbTransportPool.getChallenge(CIFSContext tc,
UniAddress dc)
Get NTLM challenge from a server
|
byte[] |
SmbTransportPool.getChallenge(CIFSContext tc,
UniAddress dc,
int port)
Get NTLM challenge from a server
|
SID[] |
SidResolver.getGroupMemberSids(CIFSContext tc,
String authorityServerName,
SID domsid,
int rid,
int flags) |
Map<SID,List<SID>> |
SidResolver.getLocalGroupsMap(CIFSContext tc,
String authorityServerName,
int flags)
This specialized method returns a Map of users and local groups for the
target server where keys are SIDs representing an account and each value
is an ArrayList of SIDs represents the local groups that the account is
a member of.
|
SID |
SidResolver.getServerSid(CIFSContext tc,
String authorityServerName) |
SmbTransport |
SmbTransportPool.getSmbTransport(CIFSContext tc,
UniAddress address,
int port,
boolean exclusive)
Get transport connection
|
SmbTransport |
SmbTransportPool.getSmbTransport(CIFSContext tc,
UniAddress address,
int port,
boolean exclusive,
boolean forceSigning)
Get transport connection
|
SmbTransport |
SmbTransportPool.getSmbTransport(CIFSContext tc,
UniAddress address,
int port,
InetAddress localAddr,
int localPort,
String hostName,
boolean exclusive)
Get transport connection, with local binding
|
SmbTransport |
SmbTransportPool.getSmbTransport(CIFSContext tc,
UniAddress address,
int port,
InetAddress localAddr,
int localPort,
String hostName,
boolean exclusive,
boolean forceSigning) |
void |
SmbTransportPool.logon(CIFSContext tc,
UniAddress dc)
Authenticate arbitrary credentials represented by the
NtlmPasswordAuthentication object against the domain controller
specified by the UniAddress parameter.
|
void |
SmbTransportPool.logon(CIFSContext tc,
UniAddress dc,
int port)
Authenticate arbitrary credentials represented by the
NtlmPasswordAuthentication object against the domain controller
specified by the UniAddress parameter.
|
void |
SidResolver.resolveSids(CIFSContext tc,
String authorityServerName,
SID[] sids)
Resolve an array of SIDs using a cache and at most one MSRPC request.
|
void |
SidResolver.resolveSids(CIFSContext tc,
String authorityServerName,
SID[] sids,
int off,
int len)
Resolve part of an array of SIDs using a cache and at most one MSRPC request.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCIFSContext |
class |
BaseContext |
class |
CIFSContextCredentialWrapper
Context wrapper supplying alternate credentials
|
class |
CIFSContextWrapper |
class |
SingletonContext
Global singleton context
|
Modifier and Type | Method and Description |
---|---|
CIFSContext |
CIFSContextWrapper.withAnonymousCredentials() |
CIFSContext |
AbstractCIFSContext.withAnonymousCredentials() |
CIFSContext |
CIFSContextWrapper.withCredentials(SmbCredentials creds) |
CIFSContext |
AbstractCIFSContext.withCredentials(SmbCredentials creds) |
CIFSContext |
CIFSContextWrapper.withDefaultCredentials() |
CIFSContext |
AbstractCIFSContext.withDefaultCredentials() |
CIFSContext |
CIFSContextWrapper.withGuestCrendentials() |
CIFSContext |
AbstractCIFSContext.withGuestCrendentials() |
Constructor and Description |
---|
CIFSContextWrapper(CIFSContext delegate) |
Modifier and Type | Method and Description |
---|---|
CIFSContext |
DcerpcHandle.getTransportContext() |
Modifier and Type | Method and Description |
---|---|
static DcerpcHandle |
DcerpcHandle.getHandle(String url,
CIFSContext tc)
Get a handle to a service
|
static DcerpcHandle |
DcerpcHandle.getHandle(String url,
CIFSContext tc,
boolean unshared)
Get a handle to a service
|
Constructor and Description |
---|
DcerpcHandle(CIFSContext tc) |
DcerpcHandle(CIFSContext tc,
DcerpcBinding binding) |
DcerpcPipeHandle(String url,
CIFSContext tc,
boolean unshared) |
Modifier and Type | Method and Description |
---|---|
static NtlmPasswordAuthentication |
NtlmSsp.authenticate(CIFSContext tc,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
byte[] challenge)
Performs NTLM authentication for the servlet request.
|
NtlmPasswordAuthentication |
NtlmSsp.doAuthentication(CIFSContext tc,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
byte[] challenge)
Calls the static
NtlmSsp.authenticate(CIFSContext, HttpServletRequest,
HttpServletResponse, byte[]) method to perform NTLM authentication
for the specified servlet request. |
Constructor and Description |
---|
Handler(CIFSContext tc)
Deprecated.
|
NtlmHttpURLConnection(HttpURLConnection connection,
CIFSContext tc)
Deprecated.
|
Constructor and Description |
---|
Handler(CIFSContext tc)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
NbtAddress |
Lmhosts.getByName(String host,
CIFSContext tc)
This is really just for
UniAddress . |
byte[] |
NbtAddress.getMacAddress(CIFSContext tc)
Retrieves the MAC address of the remote network interface.
|
int |
NbtAddress.getNodeType(CIFSContext tc)
Checks the node type of this address.
|
boolean |
NbtAddress.isActive(CIFSContext tc)
Determines if this address is active.
|
boolean |
NbtAddress.isBeingDeleted(CIFSContext tc)
Determines if this address in the process of being deleted.
|
boolean |
NbtAddress.isGroupAddress(CIFSContext tc)
Determines if the address is a group address.
|
boolean |
NbtAddress.isInConflict(CIFSContext tc)
Determines if this address in conflict with another address.
|
boolean |
NbtAddress.isPermanent(CIFSContext tc)
Determines if this address is set to be permanent.
|
String |
NbtAddress.nextCalledName(CIFSContext tc) |
String |
UniAddress.nextCalledName(CIFSContext tc)
Guess next called name to try for session establishment.
|
Constructor and Description |
---|
NameServiceClientImpl(CIFSContext tc) |
Modifier and Type | Method and Description |
---|---|
static int |
Type1Message.getDefaultFlags(CIFSContext tc)
Returns the default flags for a generic Type-1 message in the
current environment.
|
static int |
Type2Message.getDefaultFlags(CIFSContext tc)
Returns the default flags for a generic Type-2 message in the
current environment.
|
static int |
Type3Message.getDefaultFlags(CIFSContext tc)
Returns the default flags for a generic Type-3 message in the
current environment.
|
static int |
Type2Message.getDefaultFlags(CIFSContext tc,
Type1Message type1)
Returns the default flags for a Type-2 message created in response
to the given Type-1 message in the current environment.
|
static int |
Type3Message.getDefaultFlags(CIFSContext tc,
Type2Message type2)
Returns the default flags for a Type-3 message created in response
to the given Type-2 message in the current environment.
|
static byte[] |
Type3Message.getLMResponse(CIFSContext tc,
Type2Message type2,
String password)
Constructs the LanManager response to the given Type-2 message using
the supplied password.
|
static byte[] |
Type3Message.getLMv2Response(CIFSContext tc,
Type2Message type2,
String domain,
String user,
String password,
byte[] clientChallenge) |
static byte[] |
Type3Message.getNTLMv2Response(CIFSContext tc,
Type2Message type2,
byte[] responseKeyNT,
byte[] clientChallenge) |
static byte[] |
Type3Message.getNTResponse(CIFSContext tc,
Type2Message type2,
String password)
Constructs the NT response to the given Type-2 message using
the supplied password.
|
Constructor and Description |
---|
Type1Message(CIFSContext tc)
Creates a Type-1 message using default values from the current
environment.
|
Type1Message(CIFSContext tc,
int flags,
String suppliedDomain,
String suppliedWorkstation)
Creates a Type-1 message with the specified parameters.
|
Type2Message(CIFSContext tc)
Creates a Type-2 message using default values from the current
environment.
|
Type2Message(CIFSContext tc,
int flags,
byte[] challenge,
String target)
Creates a Type-2 message with the specified parameters.
|
Type2Message(CIFSContext tc,
Type1Message type1)
Creates a Type-2 message in response to the given Type-1 message
using default values from the current environment.
|
Type2Message(CIFSContext tc,
Type1Message type1,
byte[] challenge,
String target)
Creates a Type-2 message in response to the given Type-1 message.
|
Type3Message(CIFSContext tc)
Creates a Type-3 message using default values from the current
environment.
|
Type3Message(CIFSContext tc,
Type2Message type2)
Creates a Type-3 message in response to the given Type-2 message
using default values from the current environment.
|
Type3Message(CIFSContext tc,
Type2Message type2,
String password,
String domain,
String user,
String workstation,
int flags)
Creates a Type-3 message in response to the given Type-2 message.
|
Modifier and Type | Method and Description |
---|---|
CIFSContext |
SmbFile.getTransportContext() |
CIFSContext |
SmbSession.getTransportContext() |
CIFSContext |
SmbTransport.getTransportContext() |
Modifier and Type | Method and Description |
---|---|
void |
Dfs.cache(CIFSContext tc,
String path,
DfsReferral dr)
Add a referral to the cache
|
void |
DfsImpl.cache(CIFSContext tc,
String path,
DfsReferral dr) |
SSPContext |
SmbCredentials.createContext(CIFSContext tc,
String host,
byte[] initialToken,
boolean doSigning) |
SSPContext |
Kerb5Authenticator.createContext(CIFSContext tc,
String host,
byte[] initialToken,
boolean doSigning) |
SSPContext |
NtlmPasswordAuthentication.createContext(CIFSContext transportContext,
String host,
byte[] initialToken,
boolean doSigning) |
byte[] |
NtlmPasswordAuthentication.getAnsiHash(CIFSContext tc,
byte[] chlng)
Computes the 24 byte ANSI password hash given the 8 byte server challenge.
|
byte[] |
SmbTransportPoolImpl.getChallenge(CIFSContext tf,
UniAddress dc) |
byte[] |
SmbTransportPoolImpl.getChallenge(CIFSContext tf,
UniAddress dc,
int port) |
SmbTransport |
Dfs.getDc(CIFSContext tf,
String domain)
Get a connection to the domain controller for a given domain
|
SmbTransport |
DfsImpl.getDc(CIFSContext tf,
String domain)
Get a connection to the domain controller for a given domain
|
SID[] |
SIDCacheImpl.getGroupMemberSids(CIFSContext tc,
String authorityServerName,
SID domsid,
int rid,
int flags) |
SID[] |
SID.getGroupMemberSids(String authorityServerName,
CIFSContext tc,
int flags)
Get members of the group represented by this SID, if it is one.
|
Map<SID,List<SID>> |
SIDCacheImpl.getLocalGroupsMap(CIFSContext tc,
String authorityServerName,
int flags)
This specialized method returns a Map of users and local groups for the
target server where keys are SIDs representing an account and each value
is an ArrayList of SIDs represents the local groups that the account is
a member of.
|
static byte[] |
NtlmUtil.getPreNTLMResponse(CIFSContext tc,
String password,
byte[] challenge)
Generate the ANSI DES hash for the password associated with these credentials.
|
DfsReferral |
Dfs.getReferral(CIFSContext tf,
SmbTransport trans,
String domain,
String root,
String path)
Get a referral from a server
|
DfsReferral |
DfsImpl.getReferral(CIFSContext tf,
SmbTransport trans,
String domain,
String root,
String path)
Get a referral from a server
|
SID |
SIDCacheImpl.getServerSid(CIFSContext tc,
String server) |
byte[] |
NtlmPasswordAuthentication.getSigningKey(CIFSContext tc,
byte[] chlng) |
SmbSession |
SmbTransport.getSmbSession(CIFSContext tf) |
SmbTransport |
SmbTransportPoolImpl.getSmbTransport(CIFSContext tc,
UniAddress address,
int port,
boolean nonPooled) |
SmbTransport |
SmbTransportPoolImpl.getSmbTransport(CIFSContext tc,
UniAddress address,
int port,
boolean nonPooled,
boolean forceSigning) |
SmbTransport |
SmbTransportPoolImpl.getSmbTransport(CIFSContext tc,
UniAddress address,
int port,
InetAddress localAddr,
int localPort,
String hostName,
boolean nonPooled) |
SmbTransport |
SmbTransportPoolImpl.getSmbTransport(CIFSContext tc,
UniAddress address,
int port,
InetAddress localAddr,
int localPort,
String hostName,
boolean nonPooled,
boolean forceSigning) |
byte[] |
NtlmPasswordAuthentication.getUnicodeHash(CIFSContext tc,
byte[] chlng)
Computes the 24 byte Unicode password hash given the 8 byte server challenge.
|
byte[] |
NtlmPasswordAuthentication.getUserSessionKey(CIFSContext tc,
byte[] chlng)
Returns the effective user session key.
|
boolean |
Dfs.isTrustedDomain(CIFSContext tf,
String domain) |
boolean |
DfsImpl.isTrustedDomain(CIFSContext tf,
String domain) |
void |
SmbTransportPoolImpl.logon(CIFSContext tf,
UniAddress dc) |
void |
SmbTransportPoolImpl.logon(CIFSContext tf,
UniAddress dc,
int port) |
DfsReferral |
Dfs.resolve(CIFSContext tf,
String domain,
String root,
String path)
Resolve the location of a DFS path
|
DfsReferral |
DfsImpl.resolve(CIFSContext tf,
String domain,
String root,
String path)
Resolve the location of a DFS path
|
void |
SID.resolve(String authorityServerName,
CIFSContext tc)
Manually resolve this SID.
|
void |
SIDCacheImpl.resolveSids(CIFSContext tc,
String authorityServerName,
SID[] sids)
Resolve an array of SIDs using a cache and at most one MSRPC request.
|
void |
SIDCacheImpl.resolveSids(CIFSContext tc,
String authorityServerName,
SID[] sids,
int offset,
int length) |
Constructor and Description |
---|
DfsImpl(CIFSContext tc) |
Handler(CIFSContext tc) |
JAASAuthenticator(CIFSContext tc)
Create an authenticator using the JAAS service jcifs
This will require that a keytab is configured in this service.
|
JAASAuthenticator(CIFSContext tc,
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(CIFSContext tc,
String serviceName)
Create an authenticator using the given JAAS service
This will require that a keytab is configured in this service.
|
JAASAuthenticator(CIFSContext tc,
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(CIFSContext tc,
String serviceName,
String domain,
String username,
String password)
Create an authenticator using the given JAAS service and the specified credentials
|
Kerb5Authenticator(CIFSContext tc,
Subject subject)
Contruct a
Kerb5Authenticator object with Subject
which hold TGT retrieved from KDC. |
Kerb5Authenticator(CIFSContext tc,
Subject subject,
String domain,
String username,
String password)
Contruct a
Kerb5Authenticator object with Subject and
potential NTLM fallback (if the server does not support kerberos). |
NtlmContext(CIFSContext tc,
NtlmPasswordAuthentication auth,
boolean doSigning) |
NtlmPasswordAuthentication(CIFSContext tc)
Construct anonymous credentials
|
NtlmPasswordAuthentication(CIFSContext tc,
String userInfo)
Create an NtlmPasswordAuthentication object from the userinfo
component of an SMB URL like "domain;user:pass".
|
NtlmPasswordAuthentication(CIFSContext tc,
String domain,
String username,
String password)
Create an NtlmPasswordAuthentication object from a
domain, username, and password.
|
SIDCacheImpl(CIFSContext baseContext) |
SmbFile(String url,
CIFSContext tc)
Construct from string URL
|
SmbFile(String url,
CIFSContext tc,
int shareAccess) |
SmbFile(URL url,
CIFSContext tc)
Construct from URL
|
SmbFileInputStream(String url,
CIFSContext tc) |
SmbNamedPipe(String url,
int pipeType,
CIFSContext tc)
Open the Named Pipe resource specified by the url
parameter.
|
SmbRandomAccessFile(String url,
String mode,
int shareAccess,
CIFSContext tc)
Instantiate a random access file from URL
|
Copyright © 2016. All rights reserved.