public class GetPrincipal
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private javax.security.auth.kerberos.KerberosPrincipal |
principal
The name of the principal to get.
|
| Constructor and Description |
|---|
GetPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
Creates the action to be used against the embedded ApacheDS DIT.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(CoreSession session,
org.apache.directory.api.ldap.model.name.Dn base)
Note that the base is a relative path from the existing context.
|
private PrincipalStoreEntry |
getEntry(org.apache.directory.api.ldap.model.entry.Entry entry)
Marshals an a PrincipalStoreEntry from an Attributes object.
|
private final javax.security.auth.kerberos.KerberosPrincipal principal
public GetPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
principal - The principal to search for in the directory.public java.lang.Object execute(CoreSession session, org.apache.directory.api.ldap.model.name.Dn base) throws java.lang.Exception
java.lang.Exceptionprivate PrincipalStoreEntry getEntry(org.apache.directory.api.ldap.model.entry.Entry entry) throws java.lang.Exception
dn - the distinguished name of the Kerberos principalattrs - the attributes of the Kerberos principaljava.lang.Exception - if there are any access problems