1 17 package org.alfresco.repo.security.authentication.ntlm; 18 19 26 public class NTLMPassthruToken extends NTLMLocalToken 27 { 28 private static final long serialVersionUID = -4635444888514735368L; 29 30 32 private NTLMChallenge m_challenge; 33 34 36 private String m_username; 37 private byte[] m_hashedPassword; 38 private int m_hashType; 39 40 42 private long m_authExpiresAt; 43 44 47 public NTLMPassthruToken() 48 { 49 51 super("", ""); 52 } 53 54 59 public final NTLMChallenge getChallenge() 60 { 61 return m_challenge; 62 } 63 64 69 public final Object getPrincipal() 70 { 71 return m_username; 72 } 73 74 79 public final byte[] getHashedPassword() 80 { 81 return m_hashedPassword; 82 } 83 84 89 public final int getPasswordType() 90 { 91 return m_hashType; 92 } 93 94 100 public final long getAuthenticationExpireTime() 101 { 102 return m_authExpiresAt; 103 } 104 105 111 public final void setUserAndPassword(String username, byte[] hashedPassword, int hashType) 112 { 113 m_username = username.toLowerCase(); 114 m_hashedPassword = hashedPassword; 115 m_hashType = hashType; 116 } 117 118 123 protected final void setChallenge(NTLMChallenge challenge) 124 { 125 m_challenge = challenge; 126 } 127 128 134 protected final void setAuthenticationExpireTime(long expireTime) 135 { 136 m_authExpiresAt = expireTime; 137 } 138 139 145 public boolean equals(Object obj) 146 { 147 149 return this == obj; 150 } 151 } 152 | Popular Tags |