com.xebialabs.deployit.security
Class UsernameAndPasswordCredentials
java.lang.Object
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
| 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 |
UsernameAndPasswordCredentials
public UsernameAndPasswordCredentials(java.lang.String username,
java.lang.String password)
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