Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for KerberosKey (0.12 sec)

  1. src/main/java/jcifs/pac/kerberos/KerberosCredentials.java

        }
    
    
        public KerberosKey getKey ( int keyType ) {
            KerberosKey serverKey = null;
    
            Set<Object> serverPrivateCredentials = this.subject.getPrivateCredentials();
            for ( Object credential : serverPrivateCredentials )
                if ( credential instanceof KerberosKey )
                    if ( ( (KerberosKey) credential ).getKeyType() == keyType )
                        serverKey = (KerberosKey) credential;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Oct 02 12:02:06 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/PacMac.java

         * @throws PACDecodingException
         */
        public static byte[] calculateMac ( int type, Map<Integer, KerberosKey> keys, byte[] data ) throws PACDecodingException {
            try {
                int usage = 17;
                if ( type == PacSignature.KERB_CHECKSUM_HMAC_MD5 ) {
                    KerberosKey key = keys.get(PacSignature.ETYPE_ARCFOUR_HMAC);
                    if ( key == null ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/pac/kerberos/KerberosTicket.java

                        }
                    }
    
                    Map<Integer, KerberosKey> keysByAlgo = new HashMap<>();
                    for ( KerberosKey key : keys ) {
                        keysByAlgo.put(key.getKeyType(), key);
                    }
    
                    KerberosKey serverKey = keysByAlgo.get(encType.getValue().intValue());
                    if ( keysByAlgo.isEmpty() || serverKey == null ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Oct 02 12:02:06 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/kerberos/KerberosPacAuthData.java

    
    import java.util.Map;
    
    import javax.security.auth.kerberos.KerberosKey;
    
    import jcifs.pac.PACDecodingException;
    import jcifs.pac.Pac;
    
    
    @SuppressWarnings ( "javadoc" )
    public class KerberosPacAuthData extends KerberosAuthData {
    
        private Pac pac;
    
    
        public KerberosPacAuthData ( byte[] token, Map<Integer, KerberosKey> keys ) throws PACDecodingException {
            this.pac = new Pac(token, keys);
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/pac/kerberos/KerberosApRequest.java

    import java.util.Enumeration;
    
    import javax.security.auth.kerberos.KerberosKey;
    
    import org.bouncycastle.asn1.*;
    
    import jcifs.pac.ASN1Util;
    import jcifs.pac.PACDecodingException;
    
    
    @SuppressWarnings ( "javadoc" )
    public class KerberosApRequest {
    
        private byte apOptions;
        private KerberosTicket ticket;
    
    
        public KerberosApRequest ( byte[] token, KerberosKey[] keys ) throws PACDecodingException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Oct 02 12:02:06 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/pac/kerberos/KerberosToken.java

     */
    package jcifs.pac.kerberos;
    
    
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    
    import javax.security.auth.kerberos.KerberosKey;
    
    import org.bouncycastle.asn1.*;
    
    import jcifs.pac.ASN1Util;
    import jcifs.pac.PACDecodingException;
    
    
    @SuppressWarnings ( "javadoc" )
    public class KerberosToken {
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Oct 02 12:02:06 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/pac/kerberos/KerberosAuthData.java

    import java.util.List;
    import java.util.Map;
    
    import javax.security.auth.kerberos.KerberosKey;
    
    import jcifs.pac.PACDecodingException;
    
    
    @SuppressWarnings ( "javadoc" )
    public abstract class KerberosAuthData {
    
        public static List<KerberosAuthData> parse ( int authType, byte[] token, Map<Integer, KerberosKey> keys ) throws PACDecodingException {
    
            List<KerberosAuthData> authorizations = new ArrayList<>();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/pac/kerberos/KerberosRelevantAuthData.java

    import javax.security.auth.kerberos.KerberosKey;
    
    import org.bouncycastle.asn1.*;
    
    import jcifs.pac.ASN1Util;
    import jcifs.pac.PACDecodingException;
    
    
    @SuppressWarnings ( "javadoc" )
    public class KerberosRelevantAuthData extends KerberosAuthData {
    
        private List<KerberosAuthData> authorizations;
    
    
        public KerberosRelevantAuthData ( byte[] token, Map<Integer, KerberosKey> keys ) throws PACDecodingException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Oct 02 12:02:06 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/PACTest.java

            checkBytes(Hex.decode(expect), mac);
        }
    
    
        /**
         * @param keybytes
         * @return
         */
        private static KerberosKey makeKey ( byte[] keybytes, int etype ) {
            return new KerberosKey(null, keybytes, etype, 0);
        }
    
    
        private static void checkBytes ( byte[] expect, byte[] have ) {
            if ( !Arrays.equals(expect, have) ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Oct 01 12:01:17 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/pac/Pac.java

    package jcifs.pac;
    
    
    import java.io.ByteArrayInputStream;
    import java.io.DataInputStream;
    import java.io.IOException;
    import java.security.MessageDigest;
    import java.util.Map;
    
    import javax.security.auth.kerberos.KerberosKey;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.util.Hexdump;
    
    
    @SuppressWarnings ( "javadoc" )
    public class Pac {
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.5K bytes
    - Viewed (0)
Back to top