Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for getInstance (0.16 sec)

  1. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

        private static final int LM_COMPATIBILITY =
                Config.getInt("jcifs.smb1.smb.lmCompatibility", 3);
    
        private static final Random RANDOM = new Random();
    
        private static LogStream log = LogStream.getInstance();
    
        // KGS!@#$%
        private static final byte[] S8 = {
            (byte)0x4b, (byte)0x47, (byte)0x53, (byte)0x21,
            (byte)0x40, (byte)0x23, (byte)0x24, (byte)0x25
        };
        /* Accepts key multiple of 7
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

    /* RC4 was not added to Java until 1.5u7 so let's use our own for a little while longer ...
                            try {
                                Cipher rc4 = Cipher.getInstance("RC4");
                                rc4.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(ntlm2SessionKey, "RC4"));
                                rc4.update(masterKey, 0, 16, exchangedKey, 0);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/context/SingletonContext.java

         * specified through this <tt>jcifs.properties</tt> system property.
         * 
         * @return a global context, initialized on first call
         */
        public static synchronized final SingletonContext getInstance () {
            if ( INSTANCE == null ) {
                try {
                    log.debug("Initializing singleton context");
                    init(null);
                }
                catch ( CIFSException e ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 01 08:53:08 GMT 2019
    - 4.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/MIEName.java

                throw new IllegalArgumentException();
            }
            byte[] bo = new byte[len];
            System.arraycopy(buf, i, bo, 0, len);
            i += len;
            this.oid = ASN1ObjectIdentifier.getInstance(bo);
    
            // NAME_LEN
            if ( buf.length < i + NAME_LEN_SIZE ) {
                throw new IllegalArgumentException();
            }
            len = 0xff000000 & ( buf[ i++ ] << 24 );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/Kerb5Context.java

        private final GSSName serviceName;
    
    
        Kerb5Context ( String host, String service, String name, int userLifetime, int contextLifetime, String realm ) throws GSSException {
            GSSManager manager = GSSManager.getInstance();
            GSSCredential clientCreds = null;
            Oid mechOid = JGSS_KRB5_MECH_OID;
            if ( realm != null ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Aug 02 08:22:42 GMT 2018
    - 13.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/Config.java

     * should be sufficient for most needs.
     * 
     * If you want to retain the classic singleton behavior you can use
     * {@link jcifs.context.SingletonContext#getInstance()}
     * witch is initialized using system properties.
     * 
     */
    @SuppressWarnings ( "javadoc" )
    public class Config {
    
        private static final Logger log = LoggerFactory.getLogger(Config.class);
    
    
        /**
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/http/NtlmHttpFilter.java

     */
    
    public class NtlmHttpFilter implements Filter {
    
        private static LogStream log = LogStream.getInstance();
    
        private String defaultDomain;
        private String domainController;
        private boolean loadBalance;
        private boolean enableBasic;
        private boolean insecureBasic;
        private String realm;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 10.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/HMACT64.java

            }
            for (int i = length; i < BLOCK_LENGTH; i++) {
                ipad[i] = IPAD;
                opad[i] = OPAD;
            }
            try {
                md5 = MessageDigest.getInstance("MD5");
            } catch (Exception ex) {
                throw new IllegalStateException(ex.getMessage());
            }
            engineReset();
        }
    
        private HMACT64(HMACT64 hmac) throws CloneNotSupportedException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 3.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

            case Smb2Constants.SMB2_DIALECT_0210:
                m = Mac.getInstance("HmacSHA256");
                signingKey = sessionKey;
                break;
            case Smb2Constants.SMB2_DIALECT_0300:
            case Smb2Constants.SMB2_DIALECT_0302:
                signingKey = Smb3KeyDerivation.deriveSigningKey(dialect, sessionKey, new byte[0] /* unimplemented */);
                m = Mac.getInstance("AESCMAC", Crypto.getProvider());
                break;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Aug 17 17:34:29 GMT 2021
    - 4.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/tests/ContextConfigTest.java

     *
     */
    @SuppressWarnings ( "javadoc" )
    public class ContextConfigTest {
    
        private SingletonContext context;
    
    
        @Before
        public void setUp () {
            this.context = SingletonContext.getInstance();
        }
    
    
        @Test
        public void testSingletonInit () {
            assertNotNull(this.context.getBufferCache());
            assertNotNull(this.context.getNameServiceClient());
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 9.9K bytes
    - Viewed (0)
Back to top