- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for SSPContext (0.08 sec)
-
src/main/java/jcifs/smb/SSPContext.java
/** * Security Support Provider (SSP) context. * * This interface provides context for security support provider * operations during SMB authentication. * * @author mbechler */ public interface SSPContext { /** * Gets the signing key for the session. * @return the signing key for the session * @throws CIFSException if an error occurs retrieving the signing key */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/SpnegoContext.java
/** * Instance a <code>SpnegoContext</code> object by wrapping a {@link SSPContext} * with the same mechanism this {@link SSPContext} used. * * @param source * the {@link SSPContext} to be wrapped */ SpnegoContext(final Configuration config, final SSPContext source) { this(config, source, source.getSupportedMechs()); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/Kerb5Context.java
* {@inheritDoc} * * @see jcifs.smb.SSPContext#isSupported(org.bouncycastle.asn1.ASN1ObjectIdentifier) */ @Override public boolean isSupported(ASN1ObjectIdentifier mechanism) { return KRB5_MECH_OID.equals(mechanism) || KRB5_MS_MECH_OID.equals(mechanism); } /** * {@inheritDoc} * * @see jcifs.smb.SSPContext#isPreferredMech(org.bouncycastle.asn1.ASN1ObjectIdentifier)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13.5K bytes - Viewed (1) -
src/test/java/jcifs/smb/CredentialsInternalTest.java
// These methods do not throw and allow interaction checks. tc.getConfig(); tc.getCredentials(); // Minimal behavior: return a mock SSPContext with lenient stubbing SSPContext ctx = mock(SSPContext.class); lenient().when(ctx.isEstablished()).thenReturn(false); return ctx; } @Override public Subject getSubject() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SSPContextTest.java
} } @Nested @DisplayName("Mockito interactions") class MockitoInteractions { @Mock SSPContext mockCtx; // Helper exercising all SSPContext methods to verify call interactions. private void useContext(SSPContext ctx) throws Exception { ctx.getSigningKey(); ctx.isEstablished(); ctx.initSecContext(new byte[] { 1, 2, 3 }, 1, 1);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmContext.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 17.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
Smb2SessionSetupRequest request = null; Smb2SessionSetupResponse response = null; SmbException ex = null; SSPContext ctx = null; byte[] token = negoResp.getSecurityBlob(); final int securityMode = (negoResp.getSecurityMode() & Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED) != 0 || trans.isSigningEnforced()
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 68.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/CredentialsInternal.java
* @param doSigning whether message signing should be enabled * @return a new SSP authentication context * @throws SmbException if context creation fails */ SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning) throws SmbException; /** * Get the security subject associated with these credentials.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
@Override public CredentialsInternal clone() { // For testing purposes, return this instance (allowed by return type) return this; } @Override public SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning) throws SmbException { // Not used within these tests
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SpnegoContextTest.java
/** * Tests for SpnegoContext focusing on delegation, error handling, and edge cases. */ @ExtendWith(MockitoExtension.class) class SpnegoContextTest { @Mock Configuration config; @Mock SSPContext mechContext; private ASN1ObjectIdentifier[] mechs; @BeforeEach void setup() { // Default: do not enforce or disable SPNEGO integrity
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0)