class oadd.org.apache.hadoop.security.token.DtUtilShell$Get extends oadd.org.apache.hadoop.tools.CommandShell$SubCommand
{
public static final java.lang.String GET_USAGE;
private static final java.lang.String PREFIX_HTTP;
private static final java.lang.String PREFIX_HTTPS;
private java.lang.String url;
final oadd.org.apache.hadoop.security.token.DtUtilShell this$0;
public void <init>(oadd.org.apache.hadoop.security.token.DtUtilShell)
{
oadd.org.apache.hadoop.security.token.DtUtilShell v;
oadd.org.apache.hadoop.security.token.DtUtilShell$Get v;
v := @this: oadd.org.apache.hadoop.security.token.DtUtilShell$Get;
v := @parameter: oadd.org.apache.hadoop.security.token.DtUtilShell;
v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: oadd.org.apache.hadoop.security.token.DtUtilShell this$0> = v;
specialinvoke v.<oadd.org.apache.hadoop.tools.CommandShell$SubCommand: void <init>(oadd.org.apache.hadoop.tools.CommandShell)>(v);
v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: java.lang.String url> = null;
return;
}
public void <init>(oadd.org.apache.hadoop.security.token.DtUtilShell, java.lang.String)
{
java.lang.String v;
oadd.org.apache.hadoop.security.token.DtUtilShell v;
oadd.org.apache.hadoop.security.token.DtUtilShell$Get v;
v := @this: oadd.org.apache.hadoop.security.token.DtUtilShell$Get;
v := @parameter: oadd.org.apache.hadoop.security.token.DtUtilShell;
v := @parameter: java.lang.String;
v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: oadd.org.apache.hadoop.security.token.DtUtilShell this$0> = v;
specialinvoke v.<oadd.org.apache.hadoop.tools.CommandShell$SubCommand: void <init>(oadd.org.apache.hadoop.tools.CommandShell)>(v);
v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: java.lang.String url> = null;
v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: java.lang.String url> = v;
return;
}
public boolean isGenericUrl()
{
oadd.org.apache.hadoop.security.token.DtUtilShell$Get v;
java.lang.String v, v;
boolean v, v, v;
v := @this: oadd.org.apache.hadoop.security.token.DtUtilShell$Get;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: java.lang.String url>;
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>("http://");
if v != 0 goto label;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: java.lang.String url>;
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>("https://");
if v == 0 goto label;
label:
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public boolean validate()
{
org.slf4j.Logger v, v, v;
oadd.org.apache.hadoop.security.token.DtUtilShell$Get v;
oadd.org.apache.hadoop.io.Text v, v;
oadd.org.apache.hadoop.security.token.DtUtilShell v, v;
int v, v;
java.lang.String v, v, v;
boolean v, v;
v := @this: oadd.org.apache.hadoop.security.token.DtUtilShell$Get;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: oadd.org.apache.hadoop.security.token.DtUtilShell this$0>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell: oadd.org.apache.hadoop.io.Text service>;
if v == null goto label;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: boolean isGenericUrl()>();
if v != 0 goto label;
v = <oadd.org.apache.hadoop.security.token.DtUtilShell: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String)>("Only provide -service with http/https URL.");
return 0;
label:
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: oadd.org.apache.hadoop.security.token.DtUtilShell this$0>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell: oadd.org.apache.hadoop.io.Text service>;
if v != null goto label;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: boolean isGenericUrl()>();
if v == 0 goto label;
v = <oadd.org.apache.hadoop.security.token.DtUtilShell: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String)>("Must provide -service with http/https URL.");
return 0;
label:
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: java.lang.String url>;
v = virtualinvoke v.<java.lang.String: int indexOf(java.lang.String)>("://");
v = (int) -1;
if v != v goto label;
v = <oadd.org.apache.hadoop.security.token.DtUtilShell: org.slf4j.Logger LOG>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: java.lang.String url>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("URL does not contain a service specification: \u0001");
interfaceinvoke v.<org.slf4j.Logger: void error(java.lang.String)>(v);
return 0;
label:
return 1;
}
public void execute() throws java.lang.Exception
{
oadd.org.apache.hadoop.security.token.DtUtilShell$Get v;
oadd.org.apache.hadoop.io.Text v, v;
oadd.org.apache.hadoop.security.token.DtUtilShell v, v, v, v, v, v;
java.io.File v;
oadd.org.apache.hadoop.conf.Configuration v;
java.lang.String v, v, v;
v := @this: oadd.org.apache.hadoop.security.token.DtUtilShell$Get;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: oadd.org.apache.hadoop.security.token.DtUtilShell this$0>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell: java.io.File firstFile>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: oadd.org.apache.hadoop.security.token.DtUtilShell this$0>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell: java.lang.String format>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: oadd.org.apache.hadoop.security.token.DtUtilShell this$0>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell: oadd.org.apache.hadoop.io.Text alias>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: oadd.org.apache.hadoop.security.token.DtUtilShell this$0>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell: oadd.org.apache.hadoop.io.Text service>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: java.lang.String url>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: oadd.org.apache.hadoop.security.token.DtUtilShell this$0>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell: java.lang.String renewer>;
v = v.<oadd.org.apache.hadoop.security.token.DtUtilShell$Get: oadd.org.apache.hadoop.security.token.DtUtilShell this$0>;
v = virtualinvoke v.<oadd.org.apache.hadoop.security.token.DtUtilShell: oadd.org.apache.hadoop.conf.Configuration getConf()>();
staticinvoke <oadd.org.apache.hadoop.security.token.DtFileOperations: void getTokenFile(java.io.File,java.lang.String,oadd.org.apache.hadoop.io.Text,oadd.org.apache.hadoop.io.Text,java.lang.String,java.lang.String,oadd.org.apache.hadoop.conf.Configuration)>(v, v, v, v, v, v, v);
return;
}
public java.lang.String getUsage()
{
oadd.org.apache.hadoop.security.token.DtUtilShell$Get v;
v := @this: oadd.org.apache.hadoop.security.token.DtUtilShell$Get;
return "dtutil get URL [-service <scheme>] [-format (java|protobuf)][-alias <alias>] [-renewer <renewer>] filename";
}
}