|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.kerberos.shared.KerberosUtils
public class KerberosUtils
An utility class for Kerberos.
Field Summary | |
---|---|
static java.util.List<java.lang.String> |
EMPTY_PRINCIPAL_NAME
An empty list of principal names |
static int |
NULL
A constant for integer optional values |
Constructor Summary | |
---|---|
KerberosUtils()
|
Method Summary | |
---|---|
static EncryptionType |
getBestEncryptionType(java.util.Set<EncryptionType> requestedTypes,
java.util.Set<EncryptionType> configuredTypes)
Get the matching encryption type from the configured types, searching into the requested types. |
static java.lang.String |
getEncryptionTypesString(java.util.Set<EncryptionType> encryptionTypes)
Build a list of encryptionTypes |
static PrincipalStoreEntry |
getEntry(javax.security.auth.kerberos.KerberosPrincipal principal,
PrincipalStore store,
ErrorType errorType)
Get a PrincipalStoreEntry given a principal. |
static javax.security.auth.kerberos.KerberosPrincipal |
getKerberosPrincipal(PrincipalName principal,
java.lang.String realm)
Constructs a KerberosPrincipal from a PrincipalName and an optional realm |
static java.util.List<java.lang.String> |
getNames(javax.security.auth.kerberos.KerberosPrincipal principal)
Parse a KerberosPrincipal instance and return the names. |
static java.util.List<java.lang.String> |
getNames(java.lang.String principalNames)
Parse a PrincipalName and return the names. |
static Authenticator |
verifyAuthHeader(ApplicationRequest authHeader,
Ticket ticket,
EncryptionKey serverKey,
long clockSkew,
ReplayCache replayCache,
boolean emptyAddressesAllowed,
java.net.InetAddress clientAddress,
CipherTextHandler lockBox,
KeyUsage authenticatorKeyUsage,
boolean isValidate)
Verifies an AuthHeader using guidelines from RFC 1510 section A.10., "KRB_AP_REQ verification." |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NULL
public static final java.util.List<java.lang.String> EMPTY_PRINCIPAL_NAME
Constructor Detail |
---|
public KerberosUtils()
Method Detail |
---|
public static java.util.List<java.lang.String> getNames(javax.security.auth.kerberos.KerberosPrincipal principal) throws java.text.ParseException
principal
- The principal to be parsed
java.text.ParseException
- if the name is not validpublic static java.util.List<java.lang.String> getNames(java.lang.String principalNames) throws java.text.ParseException
java.text.ParseException
public static javax.security.auth.kerberos.KerberosPrincipal getKerberosPrincipal(PrincipalName principal, java.lang.String realm)
principal
- The principal name and typerealm
- The optional realm
public static EncryptionType getBestEncryptionType(java.util.Set<EncryptionType> requestedTypes, java.util.Set<EncryptionType> configuredTypes)
requestedTypes
- The client encryption typesconfiguredTypes
- The configured encryption types
public static java.lang.String getEncryptionTypesString(java.util.Set<EncryptionType> encryptionTypes)
encryptionTypes
- The encryptionTypes
public static PrincipalStoreEntry getEntry(javax.security.auth.kerberos.KerberosPrincipal principal, PrincipalStore store, ErrorType errorType) throws KerberosException
principal
- store
- errorType
-
java.lang.Exception
KerberosException
public static Authenticator verifyAuthHeader(ApplicationRequest authHeader, Ticket ticket, EncryptionKey serverKey, long clockSkew, ReplayCache replayCache, boolean emptyAddressesAllowed, java.net.InetAddress clientAddress, CipherTextHandler lockBox, KeyUsage authenticatorKeyUsage, boolean isValidate) throws KerberosException
authHeader
- ticket
- serverKey
- clockSkew
- replayCache
- emptyAddressesAllowed
- clientAddress
- lockBox
- authenticatorKeyUsage
- isValidate
-
KerberosException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |