public final class javax.security.auth.kerberos.KerberosPrincipal implements java.security.Principal, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: javax.security.auth.kerberos.KerberosPrincipal
super_class: java.lang.Object
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -7374788026156829911
public static final int KRB_NT_UNKNOWN;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int KRB_NT_PRINCIPAL;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 1
public static final int KRB_NT_SRV_INST;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 2
public static final int KRB_NT_SRV_HST;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 3
public static final int KRB_NT_SRV_XHST;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 4
public static final int KRB_NT_UID;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 5
private transient java.lang.String fullName;
descriptor: Ljava/lang/String;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient java.lang.String realm;
descriptor: Ljava/lang/String;
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
private transient int nameType;
descriptor: I
flags: (0x0082) ACC_PRIVATE, ACC_TRANSIENT
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokespecial javax.security.auth.kerberos.KerberosPrincipal.<init>:(Ljava/lang/String;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/security/auth/kerberos/KerberosPrincipal;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aconst_null
astore 3
start local 3 2: new sun.security.krb5.PrincipalName
dup
aload 1
iload 2
invokespecial sun.security.krb5.PrincipalName.<init>:(Ljava/lang/String;I)V
astore 3
3: goto 6
StackMap locals: javax.security.auth.kerberos.KerberosPrincipal java.lang.String int sun.security.krb5.PrincipalName
StackMap stack: sun.security.krb5.KrbException
4: astore 4
start local 4 5: new java.lang.IllegalArgumentException
dup
aload 4
invokevirtual sun.security.krb5.KrbException.getMessage:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 4 6: StackMap locals:
StackMap stack:
aload 3
invokevirtual sun.security.krb5.PrincipalName.isRealmDeduced:()Z
ifeq 15
getstatic sun.security.krb5.Realm.AUTODEDUCEREALM:Z
ifne 15
7: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 4
start local 4 8: aload 4
ifnull 15
9: aload 4
new javax.security.auth.kerberos.ServicePermission
dup
10: new java.lang.StringBuilder
dup
ldc "@"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual sun.security.krb5.PrincipalName.getRealmAsString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
ldc "-"
invokespecial javax.security.auth.kerberos.ServicePermission.<init>:(Ljava/lang/String;Ljava/lang/String;)V
11: invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
12: goto 15
StackMap locals: javax.security.auth.kerberos.KerberosPrincipal java.lang.String int sun.security.krb5.PrincipalName java.lang.SecurityManager
StackMap stack: java.lang.SecurityException
13: pop
14: new java.lang.SecurityException
dup
ldc "Cannot read realm info"
invokespecial java.lang.SecurityException.<init>:(Ljava/lang/String;)V
athrow
end local 4 15: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield javax.security.auth.kerberos.KerberosPrincipal.nameType:I
16: aload 0
aload 3
invokevirtual sun.security.krb5.PrincipalName.toString:()Ljava/lang/String;
putfield javax.security.auth.kerberos.KerberosPrincipal.fullName:Ljava/lang/String;
17: aload 0
aload 3
invokevirtual sun.security.krb5.PrincipalName.getRealmString:()Ljava/lang/String;
putfield javax.security.auth.kerberos.KerberosPrincipal.realm:Ljava/lang/String;
18: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljavax/security/auth/kerberos/KerberosPrincipal;
0 19 1 name Ljava/lang/String;
0 19 2 nameType I
2 19 3 krb5Principal Lsun/security/krb5/PrincipalName;
5 6 4 e Lsun/security/krb5/KrbException;
8 15 4 sm Ljava/lang/SecurityManager;
Exception table:
from to target type
2 3 4 Class sun.security.krb5.KrbException
9 12 13 Class java.lang.SecurityException
MethodParameters:
Name Flags
name
nameType
public java.lang.String getRealm();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.security.auth.kerberos.KerberosPrincipal.realm:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/security/auth/kerberos/KerberosPrincipal;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.security.auth.kerberos.KerberosPrincipal.getName:()Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/security/auth/kerberos/KerberosPrincipal;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
aload 0
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof javax.security.auth.kerberos.KerberosPrincipal
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual javax.security.auth.kerberos.KerberosPrincipal.getName:()Ljava/lang/String;
astore 2
start local 2 5: aload 1
checkcast javax.security.auth.kerberos.KerberosPrincipal
invokevirtual javax.security.auth.kerberos.KerberosPrincipal.getName:()Ljava/lang/String;
astore 3
start local 3 6: aload 0
getfield javax.security.auth.kerberos.KerberosPrincipal.nameType:I
aload 1
checkcast javax.security.auth.kerberos.KerberosPrincipal
getfield javax.security.auth.kerberos.KerberosPrincipal.nameType:I
if_icmpne 9
7: aload 2
aload 3
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
8: iconst_1
ireturn
end local 3 end local 2 9: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljavax/security/auth/kerberos/KerberosPrincipal;
0 10 1 other Ljava/lang/Object;
5 9 2 myFullName Ljava/lang/String;
6 9 3 otherFullName Ljava/lang/String;
MethodParameters:
Name Flags
other
private void writeObject(java.io.ObjectOutputStream);
descriptor: (Ljava/io/ObjectOutputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: new sun.security.krb5.PrincipalName
dup
aload 0
getfield javax.security.auth.kerberos.KerberosPrincipal.fullName:Ljava/lang/String;
aload 0
getfield javax.security.auth.kerberos.KerberosPrincipal.nameType:I
invokespecial sun.security.krb5.PrincipalName.<init>:(Ljava/lang/String;I)V
astore 2
start local 2 1: aload 1
aload 2
invokevirtual sun.security.krb5.PrincipalName.asn1Encode:()[B
invokevirtual java.io.ObjectOutputStream.writeObject:(Ljava/lang/Object;)V
2: aload 1
aload 2
invokevirtual sun.security.krb5.PrincipalName.getRealm:()Lsun/security/krb5/Realm;
invokevirtual sun.security.krb5.Realm.asn1Encode:()[B
invokevirtual java.io.ObjectOutputStream.writeObject:(Ljava/lang/Object;)V
3: goto 6
end local 2 StackMap locals:
StackMap stack: java.lang.Exception
4: astore 3
start local 3 5: new java.io.IOException
dup
aload 3
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 start local 2 6: StackMap locals: sun.security.krb5.PrincipalName
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljavax/security/auth/kerberos/KerberosPrincipal;
0 7 1 oos Ljava/io/ObjectOutputStream;
1 4 2 krb5Principal Lsun/security/krb5/PrincipalName;
6 7 2 krb5Principal Lsun/security/krb5/PrincipalName;
5 6 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
oos
private void readObject(java.io.ObjectInputStream);
descriptor: (Ljava/io/ObjectInputStream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.ObjectInputStream.readObject:()Ljava/lang/Object;
checkcast byte[]
astore 2
start local 2 1: aload 1
invokevirtual java.io.ObjectInputStream.readObject:()Ljava/lang/Object;
checkcast byte[]
astore 3
start local 3 2: new sun.security.krb5.Realm
dup
new sun.security.util.DerValue
dup
aload 3
invokespecial sun.security.util.DerValue.<init>:([B)V
invokespecial sun.security.krb5.Realm.<init>:(Lsun/security/util/DerValue;)V
astore 4
start local 4 3: new sun.security.krb5.PrincipalName
dup
4: new sun.security.util.DerValue
dup
aload 2
invokespecial sun.security.util.DerValue.<init>:([B)V
aload 4
5: invokespecial sun.security.krb5.PrincipalName.<init>:(Lsun/security/util/DerValue;Lsun/security/krb5/Realm;)V
astore 5
start local 5 6: aload 0
aload 4
invokevirtual sun.security.krb5.Realm.toString:()Ljava/lang/String;
putfield javax.security.auth.kerberos.KerberosPrincipal.realm:Ljava/lang/String;
7: aload 0
aload 5
invokevirtual sun.security.krb5.PrincipalName.toString:()Ljava/lang/String;
putfield javax.security.auth.kerberos.KerberosPrincipal.fullName:Ljava/lang/String;
8: aload 0
aload 5
invokevirtual sun.security.krb5.PrincipalName.getNameType:()I
putfield javax.security.auth.kerberos.KerberosPrincipal.nameType:I
end local 5 end local 4 9: goto 12
StackMap locals: javax.security.auth.kerberos.KerberosPrincipal java.io.ObjectInputStream byte[] byte[]
StackMap stack: java.lang.Exception
10: astore 4
start local 4 11: new java.io.IOException
dup
aload 4
invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 12: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljavax/security/auth/kerberos/KerberosPrincipal;
0 13 1 ois Ljava/io/ObjectInputStream;
1 13 2 asn1EncPrincipal [B
2 13 3 encRealm [B
3 9 4 realmObject Lsun/security/krb5/Realm;
6 9 5 krb5Principal Lsun/security/krb5/PrincipalName;
11 12 4 e Ljava/lang/Exception;
Exception table:
from to target type
2 9 10 Class java.lang.Exception
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
ois
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.security.auth.kerberos.KerberosPrincipal.fullName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/security/auth/kerberos/KerberosPrincipal;
public int getNameType();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.security.auth.kerberos.KerberosPrincipal.nameType:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/security/auth/kerberos/KerberosPrincipal;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual javax.security.auth.kerberos.KerberosPrincipal.getName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/security/auth/kerberos/KerberosPrincipal;
}
SourceFile: "KerberosPrincipal.java"