org.apache.directory.server.kerberos.shared.store
Class PrincipalStoreEntryModifier

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.store.PrincipalStoreEntryModifier

public class PrincipalStoreEntryModifier
extends java.lang.Object

Version:
$Rev: 928945 $, $Date: 2010-03-30 01:59:49 +0200 (Tue, 30 Mar 2010) $
Author:
Apache Directory Project

Constructor Summary
PrincipalStoreEntryModifier()
           
 
Method Summary
 PrincipalStoreEntry getEntry()
          Returns the PrincipalStoreEntry.
 java.util.Map<EncryptionType,EncryptionKey> reconstituteKeyMap(org.apache.directory.shared.ldap.entry.EntryAttribute 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrincipalStoreEntryModifier

public PrincipalStoreEntryModifier()
Method Detail

getEntry

public PrincipalStoreEntry getEntry()
Returns the PrincipalStoreEntry.

Returns:
The PrincipalStoreEntry.

setDisabled

public void setDisabled(boolean disabled)
Sets whether the account is disabled.

Parameters:
disabled -

setLockedOut

public void setLockedOut(boolean lockedOut)
Sets whether the account is locked-out.

Parameters:
lockedOut -

setExpiration

public void setExpiration(KerberosTime expiration)
Sets the expiration time.

Parameters:
expiration -

setDistinguishedName

public void setDistinguishedName(java.lang.String distinguishedName)
Sets the distinguished name (DN).

Parameters:
distinguishedName -

setCommonName

public void setCommonName(java.lang.String commonName)
Sets the common name (cn).

Parameters:
commonName -

setUserId

public void setUserId(java.lang.String userId)
Sets the user ID.

Parameters:
userId -

setKDCFlags

public void setKDCFlags(int kdcFlags)
Sets the KDC flags.

Parameters:
kdcFlags -

setKeyMap

public void setKeyMap(java.util.Map<EncryptionType,EncryptionKey> keyMap)
Sets the key map.

Parameters:
keyMap -

setKeyVersionNumber

public void setKeyVersionNumber(int keyVersionNumber)
Sets the key version number.

Parameters:
keyVersionNumber -

setMaxLife

public void setMaxLife(int maxLife)
Sets the ticket maximum life time.

Parameters:
maxLife -

setMaxRenew

public void setMaxRenew(int maxRenew)
Sets the ticket maximum renew time.

Parameters:
maxRenew -

setPasswordEnd

public void setPasswordEnd(KerberosTime passwordEnd)
Sets the end-of-life for the password.

Parameters:
passwordEnd -

setPrincipal

public void setPrincipal(javax.security.auth.kerberos.KerberosPrincipal principal)
Sets the principal.

Parameters:
principal -

setRealmName

public void setRealmName(java.lang.String realmName)
Sets the realm.

Parameters:
realmName -

setValidEnd

public void setValidEnd(KerberosTime validEnd)
Sets the end of validity.

Parameters:
validEnd -

setValidStart

public void setValidStart(KerberosTime validStart)
Sets the start of validity.

Parameters:
validStart -

setSamType

public void setSamType(SamType samType)
Sets the single-use authentication (SAM) type.

Parameters:
samType -

reconstituteKeyMap

public java.util.Map<EncryptionType,EncryptionKey> reconstituteKeyMap(org.apache.directory.shared.ldap.entry.EntryAttribute krb5key)
                                                               throws java.lang.Exception
Converts the ASN.1 encoded key set to a map of encryption types to encryption keys.

Parameters:
krb5key -
Returns:
The map of encryption types to encryption keys.
Throws:
javax.naming.NamingException
java.io.IOException
java.lang.Exception


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.