org.openmdx.security.realm1.cci
Class CredentialImpl

java.lang.Object
  extended by org.openmdx.base.accessor.jmi.spi.RefObject_1
      extended by org.openmdx.security.realm1.cci.CredentialImpl
All Implemented Interfaces:
Serializable, javax.jdo.spi.PersistenceCapable, RefBaseObject, RefFeatured, RefObject, RefObject_1_0, Credential

public class CredentialImpl
extends RefObject_1
implements Credential

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.jdo.spi.PersistenceCapable
javax.jdo.spi.PersistenceCapable.ObjectIdFieldConsumer, javax.jdo.spi.PersistenceCapable.ObjectIdFieldManager, javax.jdo.spi.PersistenceCapable.ObjectIdFieldSupplier
 
Field Summary
 
Fields inherited from interface javax.jdo.spi.PersistenceCapable
CHECK_READ, CHECK_WRITE, LOAD_REQUIRED, MEDIATE_READ, MEDIATE_WRITE, READ_OK, READ_WRITE_OK, SERIALIZABLE
 
Constructor Summary
CredentialImpl(Object_1_0 object, RefClass refClass)
           
 
Method Summary
 Subject getSubject()
          Retrieves the value for the reference subject.
 boolean isLocked()
          Retrieves the value for the attribute locked.
protected  boolean isLocked(int index)
           
 ValidationResult request(AuthenticationContext context)
           
 ValidationResult request(CredentialRequestParams params)
           
 void setLocked(boolean newValue)
          Sets a new value for the attribute locked.
protected  void setLocked(int index, boolean newValue)
           
 void setSubject(Subject newValue)
          Sets a new value for the reference subject.
 ValidationResult validate(AuthenticationContext context, byte[] state, byte[] value)
           
 ValidationResult validate(CredentialValidateParams params)
           
 
Methods inherited from class org.openmdx.base.accessor.jmi.spi.RefObject_1
equals, jdoCopyFields, jdoCopyKeyFieldsFromObjectId, jdoCopyKeyFieldsToObjectId, jdoCopyKeyFieldsToObjectId, jdoGetObjectId, jdoGetPersistenceManager, jdoGetTransactionalObjectId, jdoGetVersion, jdoIsDeleted, jdoIsDetached, jdoIsDirty, jdoIsNew, jdoIsPersistent, jdoIsTransactional, jdoMakeDirty, jdoNewInstance, jdoNewInstance, jdoNewObjectIdInstance, jdoNewObjectIdInstance, jdoProvideField, jdoProvideFields, jdoReplaceField, jdoReplaceFields, jdoReplaceFlags, jdoReplaceStateManager, refAddEventListener, refAddToUnitOfWork, refAddValue, refAddValue, refAddValue, refClass, refContext, refDefaultFetchGroup, refDelegate, refDelete, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refGetValue, refImmediateComposite, refImmediatePackage, refInitialize, refInitialize, refInvokeOperation, refInvokeOperation, refIsDeleted, refIsDirty, refIsInstanceOf, refIsNew, refIsPersistent, refIsWriteProtected, refMetaObject, refMofId, refOutermostComposite, refOutermostPackage, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refRemoveValue, refRemoveValue, refSetValue, refSetValue, refSetValue, refSetValue, refVerifyConstraints, refWriteProtect, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefObject_1_0
refAddEventListener, refAddToUnitOfWork, refAddValue, refContext, refDefaultFetchGroup, refDelegate, refFlush, refGetEventListeners, refGetPath, refGetValue, refGetValue, refInitialize, refInitialize, refIsDeleted, refIsDirty, refIsNew, refIsPersistent, refIsWriteProtected, refRefresh, refRefreshAsynchronously, refRemoveEventListener, refRemoveFromUnitOfWork, refRemoveValue, refRemoveValue, refSetValue, refWriteProtect
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Constructor Detail

CredentialImpl

public CredentialImpl(Object_1_0 object,
                      RefClass refClass)
Method Detail

isLocked

public boolean isLocked()
Description copied from interface: Credential
Retrieves the value for the attribute locked.

Specified by:
isLocked in interface Credential
Returns:
The non-null value for attribute locked.

isLocked

protected boolean isLocked(int index)

setLocked

public void setLocked(boolean newValue)
Description copied from interface: Credential
Sets a new value for the attribute locked.

Specified by:
setLocked in interface Credential
Parameters:
newValue - The non-null new value for attribute locked.

setLocked

protected void setLocked(int index,
                         boolean newValue)

request

public ValidationResult request(CredentialRequestParams params)
                         throws RefException
Specified by:
request in interface Credential
Throws:
RefException

request

public ValidationResult request(AuthenticationContext context)
                         throws RefException
Specified by:
request in interface Credential
Throws:
RefException

getSubject

public Subject getSubject()
Description copied from interface: Credential
Retrieves the value for the reference subject.

Specified by:
getSubject in interface Credential
Returns:
The non-null value for this reference.

setSubject

public void setSubject(Subject newValue)
Description copied from interface: Credential
Sets a new value for the reference subject.

Specified by:
setSubject in interface Credential
Parameters:
newValue - The non-null new value for this reference.

validate

public ValidationResult validate(CredentialValidateParams params)
                          throws RefException
Specified by:
validate in interface Credential
Throws:
RefException

validate

public ValidationResult validate(AuthenticationContext context,
                                 byte[] state,
                                 byte[] value)
                          throws RefException
Specified by:
validate in interface Credential
Throws:
RefException


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.