public final class ClientUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static KrbConfig |
getConfig(File conf)
Load krb5.conf from specified conf dir.
|
static KrbConfig |
getDefaultConfig()
Load default krb5.conf
|
static List<String> |
getKDCList(String realm,
KrbSetting krbSetting)
Returns a list of KDC
|
static TransportPair |
getTransportPair(KrbSetting setting,
String kdcString)
Get KDC network transport addresses according to krb client setting.
|
public static KrbConfig getConfig(File conf) throws KrbException
conf - The conf file or dir, default file name 'krb5.conf' is used if dirKrbException - epublic static KrbConfig getDefaultConfig() throws KrbException
KrbException - epublic static TransportPair getTransportPair(KrbSetting setting, String kdcString) throws KrbException, IOException
setting - The krb settingkdcString - The kdc string, may include the port numberKrbException - eIOExceptionpublic static List<String> getKDCList(String realm, KrbSetting krbSetting) throws KrbException
KrbException - if there's no way to find KDC for the realmCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.