public class NegotiateToken extends Object implements org.apache.shiro.authc.HostAuthenticationToken, org.apache.shiro.authc.RememberMeAuthenticationToken
| Constructor and Description |
|---|
NegotiateToken(byte[] newIn,
byte[] newOut,
String newConnectionId,
String newSecurityPackage,
boolean newNtlmPost,
boolean newRememberMe,
String newHost)
Instantiates a new negotiate token.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.shiro.authc.AuthenticationInfo |
createInfo()
Creates the info.
|
String |
getConnectionId()
Gets the connection id.
|
Object |
getCredentials() |
String |
getHost()
Returns the host name or IP string from where the authentication attempt occurs.
|
byte[] |
getIn()
Gets the in.
|
Principal |
getPrincipal() |
String |
getSecurityPackage()
Gets the security package.
|
Subject |
getSubject()
Gets the subject.
|
boolean |
isNtlmPost()
Checks if is ntlm post.
|
boolean |
isRememberMe()
Returns true if the submitting user wishes their identity (principal(s)) to be remembered across
sessions, false otherwise.
|
void |
setOut(byte[] outToken)
Sets the out.
|
void |
setPrincipal(Principal value)
Sets the principal.
|
void |
setSubject(Subject value)
Sets the subject.
|
public NegotiateToken(byte[] newIn,
byte[] newOut,
String newConnectionId,
String newSecurityPackage,
boolean newNtlmPost,
boolean newRememberMe,
String newHost)
newIn - the new innewOut - the new outnewConnectionId - the new connection idnewSecurityPackage - the new security packagenewNtlmPost - the new ntlm postnewRememberMe - the new remember menewHost - the new hostpublic String getConnectionId()
public String getSecurityPackage()
public boolean isNtlmPost()
public Object getCredentials()
getCredentials in interface org.apache.shiro.authc.AuthenticationTokenpublic Principal getPrincipal()
getPrincipal in interface org.apache.shiro.authc.AuthenticationTokenpublic void setOut(byte[] outToken)
outToken - the new outpublic void setSubject(Subject value)
value - the new subjectpublic byte[] getIn()
public Subject getSubject()
public org.apache.shiro.authc.AuthenticationInfo createInfo()
public void setPrincipal(Principal value)
value - the new principalpublic boolean isRememberMe()
isRememberMe in interface org.apache.shiro.authc.RememberMeAuthenticationTokenpublic String getHost()
(Shiro's default Authenticator allows null hosts to support localhost and proxy server environments).
getHost in interface org.apache.shiro.authc.HostAuthenticationTokenCopyright © 2010–2017 com.github.waffle. All rights reserved.