net.sourceforge.heracles.dao.impl
Class KerberosQueryImpl
java.lang.Object
net.sourceforge.heracles.dao.impl.KerberosQueryImpl
- All Implemented Interfaces:
- KerberosQuery
public class KerberosQueryImpl
- extends java.lang.Object
- implements KerberosQuery
Title: KerberosQueryImpl.java
Description: This class communicats with JAAS
Java Version: JDK 1.5
- Author:
- Philipp Gantert
version 1.0
Constructor Summary |
private |
KerberosQueryImpl()
This private constructor will be needed for spring framework. |
Method Summary |
javax.security.auth.Subject |
auth(java.lang.String domainname,
java.lang.String username,
java.lang.String password)
|
void |
setHeraclesConfig(HeraclesConfig heraclesConfig)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
private org.apache.log4j.Logger logger
heraclesConfig
private HeraclesConfig heraclesConfig
loginContext
private javax.security.auth.login.LoginContext loginContext
KerberosQueryImpl
private KerberosQueryImpl()
- This private constructor will be needed for spring framework. It runs the digister methods to
have a look in the XML file.
Then will be put all the needed envoierment informations to query the kerberos successfully.
setHeraclesConfig
public void setHeraclesConfig(HeraclesConfig heraclesConfig)
- Parameters:
heraclesConfig
- the heraclesConfig to set
auth
public javax.security.auth.Subject auth(java.lang.String domainname,
java.lang.String username,
java.lang.String password)
throws javax.security.auth.login.LoginException,
HeraclesException
- Specified by:
auth
in interface KerberosQuery
- Parameters:
domainname
- username
- password
-
- Returns:
Subject
- Throws:
javax.security.auth.login.LoginException
HeraclesException
Copyright © 2007 null. All Rights Reserved.