- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for ASN1ObjectIdentifier (0.09 sec)
-
src/test/java/jcifs/smb/SpnegoContextTest.java
SSPContext mechContext; private ASN1ObjectIdentifier[] mechs; @BeforeEach void setup() { // Default: do not enforce or disable SPNEGO integrity when(this.config.isEnforceSpnegoIntegrity()).thenReturn(false); when(this.config.isDisableSpnegoIntegrity()).thenReturn(false); this.mechs = new ASN1ObjectIdentifier[] { new ASN1ObjectIdentifier("1.2.3.4") }; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/pac/kerberos/KerberosTokenTest.java
// Create inner content with OID and magic bytes but wrong tag after ByteArrayOutputStream innerContent = new ByteArrayOutputStream(); ASN1ObjectIdentifier kerberosOid = new ASN1ObjectIdentifier(KerberosConstants.KERBEROS_OID); innerContent.write(kerberosOid.getEncoded()); innerContent.write(0x01); // magic byte 1 innerContent.write(0x00); // magic byte 2
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/MIENameTest.java
} @Test void notEqualWhenOidDiffersOrNameNullityDiffers() { MIEName a = new MIEName(new ASN1ObjectIdentifier("1.2.3"), "X"); MIEName b = new MIEName(new ASN1ObjectIdentifier("1.2.4"), "X"); MIEName c = new MIEName(new ASN1ObjectIdentifier("1.2.3"), null); assertNotEquals(a, b); assertNotEquals(a, c); assertNotEquals(a, new Object());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.6K bytes - Viewed (0) -
src/main/java/jcifs/spnego/NegTokenTarg.java
* @return the mechanism OID */ public ASN1ObjectIdentifier getMechanism() { return this.mechanism; } /** * Sets the selected authentication mechanism OID * @param mechanism the mechanism OID to set */ public void setMechanism(final ASN1ObjectIdentifier mechanism) { this.mechanism = mechanism; } @Override
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.9K bytes - Viewed (0) -
src/main/java/jcifs/smb/MIEName.java
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.smb; import java.util.Objects; import org.bouncycastle.asn1.ASN1ObjectIdentifier; /** * This class is used to parse the name of context initiator and * context acceptor which are retrieved from GSSContext. * * @author Shun * */ class MIEName {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 3.5K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenTargTest.java
class NegTokenTargTest { @Test @DisplayName("happy path – full token round‑trip") void testRoundTripFull() throws IOException { // Arrange – create a fully populated token ASN1ObjectIdentifier mech = new ASN1ObjectIdentifier("1.2.840.113554.1.2.2"); byte[] tokenArray = new byte[] { 1, 2, 3 }; byte[] mic = new byte[] { 9, 9, 9 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/SSPContext.java
*/ boolean isSupported(ASN1ObjectIdentifier mechanism); /** * Checks whether the specified mechanism is the preferred mechanism. * @param selectedMech the selected mechanism OID * @return whether the specified mechanism is preferred */ boolean isPreferredMech(ASN1ObjectIdentifier selectedMech); /** * Gets the negotiated context flags.
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/pac/kerberos/KerberosToken.java
throw new PACDecodingException("Malformed kerberos token", e); } try (ASN1InputStream stream = new ASN1InputStream(content)) { ASN1ObjectIdentifier kerberosOid = (ASN1ObjectIdentifier) stream.readObject(); if (!kerberosOid.getId().equals(KerberosConstants.KERBEROS_OID)) { throw new PACDecodingException("Not a kerberos token"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.8K bytes - Viewed (0)