Spring Security Framework

org.springframework.security.providers.x509
Class X509AuthenticationToken

java.lang.Object
  extended by org.springframework.security.providers.AbstractAuthenticationToken
      extended by org.springframework.security.providers.x509.X509AuthenticationToken
All Implemented Interfaces:
Serializable, Principal, Authentication

Deprecated. superceded by the preauth provider. Use the X.509 authentication support in org.springframework.security.ui.preauth.x509 instead.

public class X509AuthenticationToken
extends AbstractAuthenticationToken

Authentication implementation for X.509 client-certificate authentication.

Version:
$Id$
Author:
Luke Taylor
See Also:
Serialized Form

Constructor Summary
X509AuthenticationToken(Object principal, X509Certificate credentials, GrantedAuthority[] authorities)
          Deprecated. Used for an authentication response object.
X509AuthenticationToken(X509Certificate credentials)
          Deprecated. Used for an authentication request.
 
Method Summary
 Object getCredentials()
          Deprecated. The credentials that prove the principal is correct.
 Object getPrincipal()
          Deprecated. The identity of the principal being authenticated.
 
Methods inherited from class org.springframework.security.providers.AbstractAuthenticationToken
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

X509AuthenticationToken

public X509AuthenticationToken(X509Certificate credentials)
Deprecated. 
Used for an authentication request. The Authentication.isAuthenticated() will return false.

Parameters:
credentials - the certificate

X509AuthenticationToken

public X509AuthenticationToken(Object principal,
                               X509Certificate credentials,
                               GrantedAuthority[] authorities)
Deprecated. 
Used for an authentication response object. The Authentication.isAuthenticated() will return true.

Parameters:
principal - the principal, which is generally a UserDetails
credentials - the certificate
authorities - the authorities
Method Detail

getCredentials

public Object getCredentials()
Deprecated. 
Description copied from interface: Authentication
The credentials that prove the principal is correct. This is usually a password, but could be anything relevant to the AuthenticationManager. Callers are expected to populate the credentials.

Returns:
the credentials that prove the identity of the Principal

getPrincipal

public Object getPrincipal()
Deprecated. 
Description copied from interface: Authentication
The identity of the principal being authenticated. This is usually a username. Callers are expected to populate the principal.

Returns:
the Principal being authenticated

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.