public class org.finos.legend.engine.authentication.flows.TrinoWithDelegatedKerberosFlow extends java.lang.Object implements org.finos.legend.engine.authentication.DatabaseAuthenticationFlow
{
public void <init>()
{
org.finos.legend.engine.authentication.flows.TrinoWithDelegatedKerberosFlow v;
v := @this: org.finos.legend.engine.authentication.flows.TrinoWithDelegatedKerberosFlow;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public java.lang.Class getDatasourceClass()
{
org.finos.legend.engine.authentication.flows.TrinoWithDelegatedKerberosFlow v;
v := @this: org.finos.legend.engine.authentication.flows.TrinoWithDelegatedKerberosFlow;
return class "Lorg/finos/legend/engine/protocol/pure/v1/model/packageableElement/store/relational/connection/specification/TrinoDatasourceSpecification;";
}
public java.lang.Class getAuthenticationStrategyClass()
{
org.finos.legend.engine.authentication.flows.TrinoWithDelegatedKerberosFlow v;
v := @this: org.finos.legend.engine.authentication.flows.TrinoWithDelegatedKerberosFlow;
return class "Lorg/finos/legend/engine/protocol/pure/v1/model/packageableElement/store/relational/connection/authentication/TrinoDelegatedKerberosAuthenticationStrategy;";
}
public org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.DatabaseType getDatabaseType()
{
org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.DatabaseType v;
org.finos.legend.engine.authentication.flows.TrinoWithDelegatedKerberosFlow v;
v := @this: org.finos.legend.engine.authentication.flows.TrinoWithDelegatedKerberosFlow;
v = <org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.DatabaseType: org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.DatabaseType Trino>;
return v;
}
public org.finos.legend.engine.shared.core.identity.Credential makeCredential(org.finos.legend.engine.shared.core.identity.Identity, org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.specification.TrinoDatasourceSpecification, org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.authentication.TrinoDelegatedKerberosAuthenticationStrategy) throws java.lang.Exception
{
org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.specification.TrinoDatasourceSpecification v;
org.finos.legend.engine.shared.core.identity.Identity v;
org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.authentication.TrinoDelegatedKerberosAuthenticationStrategy v;
org.finos.legend.engine.authentication.flows.TrinoWithDelegatedKerberosFlow v;
java.lang.Exception v;
java.util.Optional v;
java.lang.Object v;
java.lang.String v;
boolean v;
v := @this: org.finos.legend.engine.authentication.flows.TrinoWithDelegatedKerberosFlow;
v := @parameter: org.finos.legend.engine.shared.core.identity.Identity;
v := @parameter: org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.specification.TrinoDatasourceSpecification;
v := @parameter: org.finos.legend.engine.protocol.pure.v.model.packageableElement.store.relational.connection.authentication.TrinoDelegatedKerberosAuthenticationStrategy;
v = virtualinvoke v.<org.finos.legend.engine.shared.core.identity.Identity: java.util.Optional getCredential(java.lang.Class)>(class "Lorg/finos/legend/engine/shared/core/identity/credential/LegendKerberosCredential;");
v = virtualinvoke v.<java.util.Optional: boolean isPresent()>();
if v != 0 goto label;
v = new java.lang.Exception;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.Class)>(class "Lorg/finos/legend/engine/shared/core/identity/credential/LegendKerberosCredential;") <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[])>("Identity does not contain expected credential of type : \u0001");
specialinvoke v.<java.lang.Exception: void <init>(java.lang.String)>(v);
throw v;
label:
v = virtualinvoke v.<java.util.Optional: java.lang.Object get()>();
return v;
}
}