|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.extensions.kerberos.SunJaasKerberosTicketValidator
public class SunJaasKerberosTicketValidator
Implementation of KerberosTicketValidator
which uses the SUN JAAS
login module, which is included in the SUN JRE, it will not work with an IBM JRE.
The whole configuration is done in this class, no additional JAAS configuration
is needed.
Constructor Summary | |
---|---|
SunJaasKerberosTicketValidator()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
setDebug(boolean debug)
Enables the debug mode of the JAAS Kerberos login module |
void |
setKeyTabLocation(Resource keyTabLocation)
The location of the keytab. |
void |
setServicePrincipal(String servicePrincipal)
The service principal of the application. |
String |
validateTicket(byte[] token)
Validates a Kerberos/SPNEGO ticket. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SunJaasKerberosTicketValidator()
Method Detail |
---|
public String validateTicket(byte[] token)
KerberosTicketValidator
validateTicket
in interface KerberosTicketValidator
token
- Kerbeos/SPNEGO ticket
public void setServicePrincipal(String servicePrincipal)
HTTP/full-qualified-domain-name@DOMAIN
.
The keytab must contain the key for this principal.
servicePrincipal
- service principal to usesetKeyTabLocation(Resource)
public void setKeyTabLocation(Resource keyTabLocation)
file:
or classpath:
, but as the
file is later on read by JAAS, we cannot guarantee that classpath
works in every environment, esp. not in Java EE application servers. You
should use file:
there.
keyTabLocation
- The location where the keytab residespublic void setDebug(boolean debug)
debug
- default is falsepublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |