/** * Construct with prepared KrbConfig. * @param krbConfig The krb config */ public KrbClientBase(KrbConfig krbConfig) { this.krbConfig = krbConfig; this.commonOptions = new KOptions(); this.krbSetting = new KrbSetting(commonOptions, krbConfig); }
/** * Construct with prepared AdminConfig. * @param adminConfig The krb config */ public AdminClient(AdminConfig adminConfig) { this.adminConfig = adminConfig; this.commonOptions = new KOptions(); this.adminSetting = new AdminSetting(commonOptions, adminConfig); }
/** * Construct with prepared AdminConfig. * @param adminConfig The krb config */ public AdminClient(AdminConfig adminConfig) { this.adminConfig = adminConfig; this.commonOptions = new KOptions(); this.adminSetting = new AdminSetting(commonOptions, adminConfig); }
/** * Construct with prepared KrbConfig. * @param krbConfig The krb config */ public KrbClientBase(KrbConfig krbConfig) { this.krbConfig = krbConfig; this.commonOptions = new KOptions(); this.krbSetting = new KrbSetting(commonOptions, krbConfig); }
/** * Constructor with conf dir * @param confDir The conf dir * @throws KrbException e */ public KrbClientBase(File confDir) throws KrbException { this.commonOptions = new KOptions(); this.krbConfig = ClientUtil.getConfig(confDir); this.krbSetting = new KrbSetting(commonOptions, krbConfig); }
/** * Default constructor. * @throws KrbException e */ public KrbClientBase() throws KrbException { this.krbConfig = ClientUtil.getDefaultConfig(); this.commonOptions = new KOptions(); this.krbSetting = new KrbSetting(commonOptions, krbConfig); }
/** * Default constructor. * @throws KrbException e */ public AdminClient() throws KrbException { this.adminConfig = AdminUtil.getDefaultConfig(); this.commonOptions = new KOptions(); this.adminSetting = new AdminSetting(commonOptions, adminConfig); }
/** * Default constructor. * @throws KrbException e */ public KrbClientBase() throws KrbException { this.krbConfig = ClientUtil.getDefaultConfig(); this.commonOptions = new KOptions(); this.krbSetting = new KrbSetting(commonOptions, krbConfig); }
@Override public void addPrincipal(String principal, String password) throws KrbException { principal = fixPrincipal(principal); addPrincipal(principal, password, new KOptions()); }
/** * Default constructor. * @throws KrbException e */ public AdminClient() throws KrbException { this.adminConfig = AdminUtil.getDefaultConfig(); this.commonOptions = new KOptions(); this.adminSetting = new AdminSetting(commonOptions, adminConfig); }
/** * Constructor with conf dir * @param confDir The conf dir * @throws KrbException e */ public AdminClient(File confDir) throws KrbException { this.commonOptions = new KOptions(); this.adminConfig = AdminUtil.getConfig(confDir); this.adminSetting = new AdminSetting(commonOptions, adminConfig); }
@Override public void addPrincipal(String principal) throws KrbException { principal = fixPrincipal(principal); addPrincipal(principal, new KOptions()); }
/** * Constructor with conf dir * @param confDir The conf dir * @throws KrbException e */ public AdminClient(File confDir) throws KrbException { this.commonOptions = new KOptions(); this.adminConfig = AdminUtil.getConfig(confDir); this.adminSetting = new AdminSetting(commonOptions, adminConfig); }
@Override public void addPrincipal(String principal, String password) throws KrbException { principal = fixPrincipal(principal); addPrincipal(principal, password, new KOptions()); }
/** * Constructor with conf dir * @param confDir The conf dir * @throws KrbException e */ public KrbClientBase(File confDir) throws KrbException { this.commonOptions = new KOptions(); this.krbConfig = ClientUtil.getConfig(confDir); this.krbSetting = new KrbSetting(commonOptions, krbConfig); }
/** * Default constructor. */ public KdcServer() { kdcConfig = new KdcConfig(); backendConfig = new BackendConfig(); startupOptions = new KOptions(); kdcSetting = new KdcSetting(startupOptions, kdcConfig, backendConfig); }
/** * Default constructor. */ public KdcServer() { kdcConfig = new KdcConfig(); backendConfig = new BackendConfig(); startupOptions = new KOptions(); kdcSetting = new KdcSetting(startupOptions, kdcConfig, backendConfig); }
public SgtTicket requestSgt(KrbToken token, String serverPrincipal, TgtTicket tgt) throws KrbException { if (!token.isAcToken()) { throw new IllegalArgumentException("Access token is expected"); } KOptions requestOptions = new KOptions(); requestOptions.add(TokenOption.USER_AC_TOKEN, token); requestOptions.add(KrbOption.TGT, tgt); requestOptions.add(KrbOption.SERVER_PRINCIPAL, serverPrincipal); return requestSgt(requestOptions); } }
/** * Default constructor. */ public AdminServer() { adminServerConfig = new AdminServerConfig(); backendConfig = new BackendConfig(); kdcConfig = new KdcConfig(); startupOptions = new KOptions(); adminServerSetting = new AdminServerSetting(startupOptions, adminServerConfig, kdcConfig, backendConfig); }
public KOptions getPreauthOptions() { KOptions results = new KOptions(); KOptions krbOptions = kdcRequest.getRequestOptions(); if (krbOptions.contains(KrbOption.ARMOR_CACHE)) { results.add(krbOptions.getOption(KrbOption.ARMOR_CACHE)); } else if (krbOptions.contains(KrbOption.TGT)) { results.add(krbOptions.getOption(KrbOption.TGT)); } return results; }