final class com.sun.security.sasl.CramMD5Client extends com.sun.security.sasl.CramMD5Base implements javax.security.sasl.SaslClient
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.security.sasl.CramMD5Client
super_class: com.sun.security.sasl.CramMD5Base
{
private java.lang.String username;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
void <init>(java.lang.String, byte[]);
descriptor: (Ljava/lang/String;[B)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial com.sun.security.sasl.CramMD5Base.<init>:()V
1: aload 1
ifnull 2
aload 2
ifnonnull 5
2: StackMap locals: com.sun.security.sasl.CramMD5Client java.lang.String byte[]
StackMap stack:
new javax.security.sasl.SaslException
dup
3: ldc "CRAM-MD5: authentication ID and password must be specified"
4: invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield com.sun.security.sasl.CramMD5Client.username:Ljava/lang/String;
6: aload 0
aload 2
putfield com.sun.security.sasl.CramMD5Client.pw:[B
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/security/sasl/CramMD5Client;
0 8 1 authID Ljava/lang/String;
0 8 2 pw [B
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
authID
pw
public boolean hasInitialResponse();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/security/sasl/CramMD5Client;
public byte[] evaluateChallenge(byte[]);
descriptor: ([B)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.security.sasl.CramMD5Client.completed:Z
ifeq 4
1: new java.lang.IllegalStateException
dup
2: ldc "CRAM-MD5 authentication already completed"
3: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.security.sasl.CramMD5Client.aborted:Z
ifeq 8
5: new java.lang.IllegalStateException
dup
6: ldc "CRAM-MD5 authentication previously aborted due to error"
7: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
getstatic com.sun.security.sasl.CramMD5Client.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
invokevirtual java.util.logging.Logger.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 12
9: getstatic com.sun.security.sasl.CramMD5Client.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "CRAMCLNT01:Received challenge: {0}"
10: new java.lang.String
dup
aload 1
ldc "UTF8"
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
11: invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V
12: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.security.sasl.CramMD5Client.pw:[B
aload 1
invokestatic com.sun.security.sasl.CramMD5Client.HMAC_MD5:([B[B)Ljava/lang/String;
astore 2
start local 2 13: aload 0
invokevirtual com.sun.security.sasl.CramMD5Client.clearPassword:()V
14: new java.lang.StringBuilder
dup
aload 0
getfield com.sun.security.sasl.CramMD5Client.username:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 15: getstatic com.sun.security.sasl.CramMD5Client.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "CRAMCLNT02:Sending response: {0}"
aload 3
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V
16: aload 0
iconst_1
putfield com.sun.security.sasl.CramMD5Client.completed:Z
17: aload 3
ldc "UTF8"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
18: areturn
end local 3 end local 2 19: StackMap locals:
StackMap stack: java.security.NoSuchAlgorithmException
astore 2
start local 2 20: aload 0
iconst_1
putfield com.sun.security.sasl.CramMD5Client.aborted:Z
21: new javax.security.sasl.SaslException
dup
ldc "MD5 algorithm not available on platform"
aload 2
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 22: StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
astore 2
start local 2 23: aload 0
iconst_1
putfield com.sun.security.sasl.CramMD5Client.aborted:Z
24: new javax.security.sasl.SaslException
dup
ldc "UTF8 not available on platform"
aload 2
invokespecial javax.security.sasl.SaslException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lcom/sun/security/sasl/CramMD5Client;
0 25 1 challengeData [B
13 19 2 digest Ljava/lang/String;
15 19 3 resp Ljava/lang/String;
20 22 2 e Ljava/security/NoSuchAlgorithmException;
23 25 2 e Ljava/io/UnsupportedEncodingException;
Exception table:
from to target type
8 18 19 Class java.security.NoSuchAlgorithmException
8 18 22 Class java.io.UnsupportedEncodingException
Exceptions:
throws javax.security.sasl.SaslException
MethodParameters:
Name Flags
challengeData
}
SourceFile: "CramMD5Client.java"