net.databinder.auth
Interface AuthApplication

All Known Implementing Classes:
AuthDataApplication, AuthDataApplication

public interface AuthApplication

Application-specific authorization settings. Many components of Databinder authentication require that this be implemented by the current WebApplication instance.

Author:
Nathan Hamblen

Method Summary
 java.security.MessageDigest getDigest()
           
 byte[] getSalt()
          Cryptographic salt to be used in authentication.
 java.lang.Class<? extends org.apache.wicket.markup.html.WebPage> getSignInPageClass()
           
 java.lang.String getToken(DataUser user)
          Get the restricted token for a user, passing an appropriate location parameter.
 DataUser getUser(java.lang.String username)
           
 java.lang.Class<? extends DataUser> getUserClass()
           
 

Method Detail

getUserClass

java.lang.Class<? extends DataUser> getUserClass()
Returns:
class to be used for signed in users

getUser

DataUser getUser(java.lang.String username)
Returns:
DataUser for the given username.

getSignInPageClass

java.lang.Class<? extends org.apache.wicket.markup.html.WebPage> getSignInPageClass()
Returns:
page to sign in users

getSalt

byte[] getSalt()
Cryptographic salt to be used in authentication. The default getDigest() implementation uses this value.

Returns:
app-specific salt

getDigest

java.security.MessageDigest getDigest()
Returns:
application-salted hashing digest

getToken

java.lang.String getToken(DataUser user)
Get the restricted token for a user, passing an appropriate location parameter.

Parameters:
user - source of token
Returns:
restricted token


Copyright © 2005-2008 Nathan Hamblen. All Rights Reserved.