com.xebialabs.deployit.security
Class UsernameAndPasswordCredentials

java.lang.Object
  extended by com.xebialabs.deployit.security.UsernameAndPasswordCredentials
All Implemented Interfaces:
java.io.Serializable, java.security.Principal, org.springframework.security.core.Authentication

public class UsernameAndPasswordCredentials
extends java.lang.Object
implements org.springframework.security.core.Authentication

See Also:
Serialized Form

Constructor Summary
UsernameAndPasswordCredentials(java.lang.String username, java.lang.String password)
           
 
Method Summary
 java.util.Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
           
 java.lang.Object getCredentials()
           
 java.lang.Object getDetails()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 java.lang.Object getPrincipal()
           
 java.lang.String getUsername()
           
 boolean isAuthenticated()
           
 void setAuthenticated(boolean isAuthenticated)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Constructor Detail

UsernameAndPasswordCredentials

public UsernameAndPasswordCredentials(java.lang.String username,
                                      java.lang.String password)
Method Detail

getUsername

public java.lang.String getUsername()

getPassword

public java.lang.String getPassword()

getAuthorities

public java.util.Collection<org.springframework.security.core.GrantedAuthority> getAuthorities()
Specified by:
getAuthorities in interface org.springframework.security.core.Authentication

getCredentials

public java.lang.Object getCredentials()
Specified by:
getCredentials in interface org.springframework.security.core.Authentication

getDetails

public java.lang.Object getDetails()
Specified by:
getDetails in interface org.springframework.security.core.Authentication

getPrincipal

public java.lang.Object getPrincipal()
Specified by:
getPrincipal in interface org.springframework.security.core.Authentication

isAuthenticated

public boolean isAuthenticated()
Specified by:
isAuthenticated in interface org.springframework.security.core.Authentication

setAuthenticated

public void setAuthenticated(boolean isAuthenticated)
                      throws java.lang.IllegalArgumentException
Specified by:
setAuthenticated in interface org.springframework.security.core.Authentication
Throws:
java.lang.IllegalArgumentException

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal