- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for PACDecodingException (0.26 sec)
-
src/main/java/jcifs/pac/PACDecodingException.java
@SuppressWarnings ( "javadoc" ) public class PACDecodingException extends CIFSException { private static final long serialVersionUID = 1L; public PACDecodingException () { this(null, null); } public PACDecodingException ( String message ) { this(message, null); } public PACDecodingException ( Throwable cause ) { this(null, cause); }
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 1.3K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacUnicodeString.java
return this.pointer; } public String check ( String string ) throws PACDecodingException { if ( this.pointer == 0 && string != null ) throw new PACDecodingException("Non-empty string"); int expected = this.length / 2; if ( string.length() != expected ) { throw new PACDecodingException("Invalid string length, expected " + expected + ", have " + string.length()); }
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 1.7K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosApRequest.java
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 { this(parseSequence(token), keys); }
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Mon Oct 02 12:02:06 GMT 2023 - 3.9K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosToken.java
import jcifs.pac.ASN1Util; import jcifs.pac.PACDecodingException; @SuppressWarnings ( "javadoc" ) public class KerberosToken { private KerberosApRequest apRequest; public KerberosToken ( byte[] token ) throws PACDecodingException { this(token, null); } public KerberosToken ( byte[] token, KerberosKey[] keys ) throws PACDecodingException { if ( token.length <= 0 )
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Mon Oct 02 12:02:06 GMT 2023 - 3K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacCredentialType.java
private static final int MINIMAL_BUFFER_SIZE = 32; private byte[] credentialType; public PacCredentialType ( byte[] data ) throws PACDecodingException { this.credentialType = data; if ( !isCredentialTypeCorrect() ) { throw new PACDecodingException("Invalid PAC credential type"); } } public boolean isCredentialTypeCorrect () {
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 1.4K bytes - Viewed (0) -
src/main/java/jcifs/pac/ASN1Util.java
/** * * @param type * @param object * @return object cast to type * @throws PACDecodingException */ public static <T> T as ( Class<T> type, Object object ) throws PACDecodingException { if ( !type.isInstance(object) ) { throw new PACDecodingException("Incompatible object types " + type + " " + object.getClass()); } return type.cast(object); }
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Mon Oct 02 12:02:06 GMT 2023 - 6.5K bytes - Viewed (0) -
src/main/java/jcifs/pac/kerberos/KerberosTicket.java
import jcifs.pac.ASN1Util; import jcifs.pac.PACDecodingException; @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 )
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Mon Oct 02 12:02:06 GMT 2023 - 5.7K bytes - Viewed (0) -
src/main/java/jcifs/pac/Pac.java
public Pac ( byte[] data, Map<Integer, KerberosKey> keys ) throws PACDecodingException { byte[] checksumData = data.clone(); try { PacDataInputStream pacStream = new PacDataInputStream(new DataInputStream(new ByteArrayInputStream(data))); if ( data.length <= 8 ) throw new PACDecodingException("Empty PAC"); int bufferCount = pacStream.readInt();
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 6.5K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacDataInputStream.java
return date; } public PacUnicodeString readUnicodeString () throws IOException, PACDecodingException { short length = readShort(); short maxLength = readShort(); int pointer = readInt(); if ( maxLength < length ) { throw new PACDecodingException("Malformed string in PAC"); } return new PacUnicodeString(length, maxLength, pointer);
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sat Jul 21 21:19:58 GMT 2018 - 5.1K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacMac.java
throw new PACDecodingException("Missing key"); } return calculateMacHMACAES(usage, key, data); } else { throw new PACDecodingException("Invalid MAC algorithm"); } } catch ( GeneralSecurityException e ) { throw new PACDecodingException("Failed to calculate MAC", e); } }
Java - Registered: Sun Apr 28 00:10:09 GMT 2024 - Last Modified: Sun Jul 01 13:12:10 GMT 2018 - 7K bytes - Viewed (0)