Skip to content
Snippets Groups Projects
Unverified Commit 976b506a authored by Daniel's avatar Daniel
Browse files

DOC: A bit more documentation.

parent 66ab99a5
No related branches found
No related tags found
No related merge requests found
...@@ -147,7 +147,13 @@ public abstract class SelfValidatingAuthenticationToken extends Principal ...@@ -147,7 +147,13 @@ public abstract class SelfValidatingAuthenticationToken extends Principal
@Override @Override
public abstract String toString(); public abstract String toString();
/** Implementation specific version of a peppered checksum. */ /** Implementation specific version of a peppered checksum.
*
* For secure opration, implementing classes must make sure that the pepper is actually used in
* calculating the checksum and that the checksum can not be used to infer information about the
* pepper. This can be achieved for example by using the {@link calcChecksum(final Object... fields)}
* method.
*/
public abstract String calcChecksum(String pepper); public abstract String calcChecksum(String pepper);
/** No credentials (returns null), since this token is self-validating. */ /** No credentials (returns null), since this token is self-validating. */
...@@ -214,7 +220,7 @@ public abstract class SelfValidatingAuthenticationToken extends Principal ...@@ -214,7 +220,7 @@ public abstract class SelfValidatingAuthenticationToken extends Principal
case "S": case "S":
return SessionToken.parse(array); return SessionToken.parse(array);
default: default:
throw new AuthenticationException("Could not parse the authtoken string."); throw new AuthenticationException("Could not parse the authtoken string (unknown type).");
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment