Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for byte (0.14 sec)

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

        private static void verifyArcfourHMAC ( int usage, String expect, String key, byte[] bytes ) throws GeneralSecurityException {
            byte[] keybytes = Hex.decode(key);
            byte[] javaChecksum;
            if ( keybytes.length == 16 ) {
                javaChecksum = sun.security.krb5.internal.crypto.ArcFourHmac.calculateChecksum(keybytes, usage, bytes, 0, bytes.length);
    
            }
            else {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 22.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

         */
        private static byte[] decryptRC4 ( byte[] data, Key key ) throws GeneralSecurityException, NoSuchAlgorithmException, NoSuchPaddingException,
                InvalidKeyException, IllegalBlockSizeException, BadPaddingException {
            Cipher cipher;
            byte[] decrypt;
            byte[] code = new byte[4];
            Encdec.enc_uint32le(2, code, 0);
            byte[] codeHmac = getHmac(code, key.getEncoded());
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/pac/kerberos/KerberosTicket.java

    @SuppressWarnings ( "javadoc" )
    public class KerberosTicket {
    
        private String serverPrincipalName;
        private String serverRealm;
        private KerberosEncData encData;
    
    
        public KerberosTicket ( byte[] token, byte apOptions, KerberosKey[] keys ) throws PACDecodingException {
            if ( token.length <= 0 )
                throw new PACDecodingException("Empty kerberos ticket");
    
            ASN1Sequence sequence;
            try {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/kerberos/KerberosRelevantAuthData.java

    
    @SuppressWarnings ( "javadoc" )
    public class KerberosRelevantAuthData extends KerberosAuthData {
    
        private List<KerberosAuthData> authorizations;
    
    
        public KerberosRelevantAuthData ( byte[] token, Map<Integer, KerberosKey> keys ) throws PACDecodingException {
            ASN1Sequence authSequence;
            try {
                try ( ASN1InputStream stream = new ASN1InputStream(new ByteArrayInputStream(token)) ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 2.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java

        /**
         * 
         */
        public static final byte SMB2_SHARE_TYPE_DISK = 0x1;
        /**
         * 
         */
        public static final byte SMB2_SHARE_TYPE_PIPE = 0x2;
        /**
         * 
         */
        public static final byte SMB2_SHARE_TYPE_PRINT = 0x3;
    
        /**
         * 
         */
        public static final int SMB2_SHAREFLAG_MANUAL_CACHING = 0x0;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon May 23 14:35:20 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/spnego/NegTokenInit.java

    
        public NegTokenInit ( ASN1ObjectIdentifier[] mechanisms, int contextFlags, byte[] mechanismToken, byte[] mechanismListMIC ) {
            setMechanisms(mechanisms);
            setContextFlags(contextFlags);
            setMechanismToken(mechanismToken);
            setMechanismListMIC(mechanismListMIC);
        }
    
    
        public NegTokenInit ( byte[] token ) throws IOException {
            parse(token);
        }
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/EnumTest.java

                    // + 8 byte query response overhead
                    // + 110 bytes entry
                    // -> 1022 predicted message size <= 1023 maximum buffer size
                    // 112 bytes to alignment
                    // -> aligned to 1024 > 1023 maximum buffer size
    
                    // 110 byte entry = 16 byte name = 8 char length
                    try ( SmbResource r = f.resolve(repeat('Y', 8)) ) {
                        r.createNewFile();
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/config/BaseConfiguration.java

            this.localPid = (int) ( Math.random() * 65536d );
            this.localTimeZone = TimeZone.getDefault();
            this.random = new SecureRandom();
    
            if ( this.machineId == null ) {
                byte[] mid = new byte[32];
                this.random.nextBytes(mid);
                this.machineId = mid;
            }
    
            if ( this.nativeOs == null ) {
                this.nativeOs = System.getProperty("os.name");
            }
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 20.4K bytes
    - Viewed (1)
  9. src/main/java/jcifs/smb/SmbTransportImpl.java

                }
    
                if ( this.sbuf[ 0 ] == (byte) 0x00 && this.sbuf[ 1 ] == (byte) 0x00 && ( this.sbuf[ 4 ] == (byte) 0xFF ) && this.sbuf[ 5 ] == (byte) 'S'
                        && this.sbuf[ 6 ] == (byte) 'M' && this.sbuf[ 7 ] == (byte) 'B' ) {
                    break; /* all good (SMB) */
                }
    
                /* out of phase maybe? */
                /* inch forward 1 byte and try again */
                for ( int i = 0; i < 35; i++ ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/Strings.java

         * @param encoding
         * @return encoded
         */
        public static byte[] getBytes ( String str, Charset encoding ) {
            if ( str == null ) {
                return new byte[0];
            }
            return str.getBytes(encoding);
        }
    
    
        /**
         * 
         * @param str
         * @return the string as bytes (UTF16-LE)
         */
        public static byte[] getUNIBytes ( String str ) {
            return getBytes(str, UNI_ENCODING);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 4.9K bytes
    - Viewed (0)
Back to top