public class PrincipalStoreEntryModifier
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
commonName |
private boolean |
disabled |
private java.lang.String |
distinguishedName |
private KerberosTime |
expiration |
private int |
kdcFlags |
private java.util.Map<EncryptionType,EncryptionKey> |
keyMap |
private int |
keyVersionNumber |
private boolean |
lockedOut |
private int |
maxLife |
private int |
maxRenew |
private KerberosTime |
passwordEnd |
private javax.security.auth.kerberos.KerberosPrincipal |
principal |
private java.lang.String |
realmName |
private SamType |
samType |
private java.lang.String |
userId |
private KerberosTime |
validEnd |
private KerberosTime |
validStart |
| Constructor and Description |
|---|
PrincipalStoreEntryModifier() |
| Modifier and Type | Method and Description |
|---|---|
PrincipalStoreEntry |
getEntry()
Returns the
PrincipalStoreEntry. |
java.util.Map<EncryptionType,EncryptionKey> |
reconstituteKeyMap(org.apache.directory.api.ldap.model.entry.Attribute krb5key)
Converts the ASN.1 encoded key set to a map of encryption types to encryption keys.
|
void |
setCommonName(java.lang.String commonName)
Sets the common name (cn).
|
void |
setDisabled(boolean disabled)
Sets whether the account is disabled.
|
void |
setDistinguishedName(java.lang.String distinguishedName)
Sets the distinguished name (Dn).
|
void |
setExpiration(KerberosTime expiration)
Sets the expiration time.
|
void |
setKDCFlags(int kdcFlags)
Sets the KDC flags.
|
void |
setKeyMap(java.util.Map<EncryptionType,EncryptionKey> keyMap)
Sets the key map.
|
void |
setKeyVersionNumber(int keyVersionNumber)
Sets the key version number.
|
void |
setLockedOut(boolean lockedOut)
Sets whether the account is locked-out.
|
void |
setMaxLife(int maxLife)
Sets the ticket maximum life time.
|
void |
setMaxRenew(int maxRenew)
Sets the ticket maximum renew time.
|
void |
setPasswordEnd(KerberosTime passwordEnd)
Sets the end-of-life for the password.
|
void |
setPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
Sets the principal.
|
void |
setRealmName(java.lang.String realmName)
Sets the realm.
|
void |
setSamType(SamType samType)
Sets the single-use authentication (SAM) type.
|
void |
setUserId(java.lang.String userId)
Sets the user ID.
|
void |
setValidEnd(KerberosTime validEnd)
Sets the end of validity.
|
void |
setValidStart(KerberosTime validStart)
Sets the start of validity.
|
private java.lang.String distinguishedName
private java.lang.String commonName
private javax.security.auth.kerberos.KerberosPrincipal principal
private java.lang.String realmName
private java.lang.String userId
private int keyVersionNumber
private KerberosTime validStart
private KerberosTime validEnd
private KerberosTime passwordEnd
private int maxLife
private int maxRenew
private int kdcFlags
private SamType samType
private boolean disabled
private boolean lockedOut
private KerberosTime expiration
private java.util.Map<EncryptionType,EncryptionKey> keyMap
public PrincipalStoreEntry getEntry()
PrincipalStoreEntry.PrincipalStoreEntry.public void setDisabled(boolean disabled)
disabled - public void setLockedOut(boolean lockedOut)
lockedOut - public void setExpiration(KerberosTime expiration)
expiration - public void setDistinguishedName(java.lang.String distinguishedName)
distinguishedName - public void setCommonName(java.lang.String commonName)
commonName - public void setUserId(java.lang.String userId)
userId - public void setKDCFlags(int kdcFlags)
kdcFlags - public void setKeyMap(java.util.Map<EncryptionType,EncryptionKey> keyMap)
keyMap - public void setKeyVersionNumber(int keyVersionNumber)
keyVersionNumber - public void setMaxLife(int maxLife)
maxLife - public void setMaxRenew(int maxRenew)
maxRenew - public void setPasswordEnd(KerberosTime passwordEnd)
passwordEnd - public void setPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
principal - public void setRealmName(java.lang.String realmName)
realmName - public void setValidEnd(KerberosTime validEnd)
validEnd - public void setValidStart(KerberosTime validStart)
validStart - public void setSamType(SamType samType)
samType - public java.util.Map<EncryptionType,EncryptionKey> reconstituteKeyMap(org.apache.directory.api.ldap.model.entry.Attribute krb5key) throws KerberosException, org.apache.directory.api.ldap.model.exception.LdapException
krb5key - org.apache.directory.api.ldap.model.exception.LdapExceptionjava.io.IOExceptionKerberosException