Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for Us (0.14 sec)

  1. src/test/java/jcifs/tests/PACTest.java

        }
    
    
        @Test
        public void testAES256Checksum () throws GeneralSecurityException {
            String data = "fourteen";
            String key = "B1AE4CD8462AFF1677053CC9279AAC30B796FB81CE21474DD3DDBCFEA4EC76D7";
            String expect = "E08739E3279E2903EC8E3836";
            verifyAESHMAC(4, expect, key, data.getBytes(StandardCharsets.US_ASCII));
        }
    
    
        /**
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 22.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/ioctl/SrvPipePeekResponse.java

    import jcifs.internal.util.SMBUtil;
    
    
    /**
     * @author svella
     *
     */
    public class SrvPipePeekResponse implements Decodable {
    
        // see https://msdn.microsoft.com/en-us/library/dd414577.aspx
    
        private int namedPipeState;
        private int readDataAvailable;
        private int numberOfMessages;
        private int messageLength;
        private byte[] data;
    
    
        /**
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 2.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/Config.java

                    log.println("WARNING: The default OEM encoding " + DEFAULT_OEM_ENCODING +
                    " does not appear to be supported by this JRE. The default encoding will be US-ASCII.");
                }
                DEFAULT_OEM_ENCODING = "US-ASCII";
            }
    
            if (log.level >= 4) {
                try {
                    prp.store( log, "JCIFS PROPERTIES" );
                } catch( IOException ioe ) {
                }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 11.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/PacMac.java

    @SuppressWarnings ( "javadoc" )
    public class PacMac {
    
        /**
         * 
         */
        private static final String HMAC_KEY = "HMAC";
        private static final byte[] MD5_CONSTANT = "signaturekey\0".getBytes(StandardCharsets.US_ASCII);
        private static final byte[] ZERO_IV = new byte[] {
            0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
        };
    
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NtlmServlet.java

                    if ( ntlm == null )
                        return;
                }
                else {
                    String auth = new String(Base64.decode(msg.substring(6)), "US-ASCII");
                    int index = auth.indexOf(':');
                    String user = ( index != -1 ) ? auth.substring(0, index) : auth;
                    String password = ( index != -1 ) ? auth.substring(index + 1) : "";
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

            }
            return this;
        }
    
    
        @Override
        public void release () {
            long us = this.usageCount.decrementAndGet();
            if ( us == 0 ) {
                this.treeConnection.release();
            }
            else if ( us < 0 ) {
                throw new RuntimeCIFSException("Usage count dropped below zero");
            }
        }
    
    
        /**
         * {@inheritDoc}
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmSsp.java

                    Type1Message type1 = new Type1Message(src);
                    Type2Message type2 = new Type2Message(tc, type1, challenge, null);
                    msg = new String(Base64.encode(type2.toByteArray()), "US-ASCII");
                    resp.setHeader("WWW-Authenticate", "NTLM " + msg);
                }
                else if ( src[ 8 ] == 3 ) {
                    Type3Message type3 = new Type3Message(src);
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

            try {
                passwordBytes = password.toUpperCase().getBytes( ServerMessageBlock.OEM_ENCODING );
            } catch( UnsupportedEncodingException uee ) {
                throw new RuntimeException("Try setting jcifs.smb1.encoding=US-ASCII", uee);
            }
            int passwordLength = passwordBytes.length;
    
            // Only encrypt the first 14 bytes of the password for Pre 0.12 NT LM
            if( passwordLength > 14) {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

     * in any IO with the server. Unlink <tt>InputStream</tt> value less than
     * the one provided will not be returned if it exceeds the end of the file
     * (if this is a problem let us know).
     */
        public long skip( long n ) throws IOException {
            if (n > 0) {
                fp += n;
                return n;
            }
            return 0;
        }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 7.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/http/NetworkExplorer.java

                        return;
                    }
                }
                else { /* Basic */
                    String auth = new String(Base64.decode(msg.substring(6)), "US-ASCII");
                    int index = auth.indexOf(':');
                    String user = ( index != -1 ) ? auth.substring(0, index) : auth;
                    String password = ( index != -1 ) ? auth.substring(index + 1) : "";
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 21.3K bytes
    - Viewed (0)
Back to top