org.n52.security.authentication.callbacks
Class CredentialCallback

java.lang.Object
  extended by org.n52.security.authentication.callbacks.CredentialCallback
All Implemented Interfaces:
javax.security.auth.callback.Callback

public class CredentialCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback

Class CredentialCallback describes the requirement for a special credential class. The callback is used by login modules to request special credential information.

Version:
$Revision: $
Author:
Marko Reiprecht Created on 18.07.2008

Constructor Summary
CredentialCallback(java.lang.Class requiredCredentialClass)
          Constructor creates a new instance, this callback asks for a credential with the given class.
CredentialCallback(Credential credential)
          Constructor creates a new instance, this callback asks for a credential of the given default value.
 
Method Summary
 Credential getCredential()
          Method gets the credential.
 java.lang.Class getRequiredCredentialClass()
          Method gets the requiredCredentialClass.
 void setCredential(Credential credential)
          Method sets the credential.
 void setRequiredCredentialClass(java.lang.Class requiredCredentialClass)
          Method sets the requiredCredentialClass.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CredentialCallback

public CredentialCallback(java.lang.Class requiredCredentialClass)
Constructor creates a new instance, this callback asks for a credential with the given class.

Parameters:
requiredCredentialClass - the requiredCredentialClass.

CredentialCallback

public CredentialCallback(Credential credential)
Constructor creates a new instance, this callback asks for a credential of the given default value.

Parameters:
credential - the credential.
Method Detail

getRequiredCredentialClass

public java.lang.Class getRequiredCredentialClass()
Method gets the requiredCredentialClass.

Returns:
Class.

setRequiredCredentialClass

public void setRequiredCredentialClass(java.lang.Class requiredCredentialClass)
Method sets the requiredCredentialClass.

Parameters:
requiredCredentialClass - the requiredCredentialClass.

getCredential

public Credential getCredential()
Method gets the credential.

Returns:
Credential.

setCredential

public void setCredential(Credential credential)
Method sets the credential.

Parameters:
credential - the credential.


Copyright © 2004-2009 52north.org. All Rights Reserved.