public class TokenProvider extends ProtectedItemModifier
| Modifier and Type | Method and Description |
|---|---|
org.apache.jackrabbit.core.security.authentication.token.TokenInfo |
createToken(User user,
SimpleCredentials sc)
Create a separate token node underneath a dedicated token store within
the user home node.
|
org.apache.jackrabbit.core.security.authentication.token.TokenInfo |
getTokenInfo(String token)
Retrieves the token information associated with the specified login
token.
|
addNode, addNode, markModified, performProtected, removeItem, setProperty, setProperty, setProperty, setPropertypublic org.apache.jackrabbit.core.security.authentication.token.TokenInfo createToken(User user, SimpleCredentials sc) throws RepositoryException
user - sc - The current simple credentials.TokenInfo or null if the token could not
be created.RepositoryExceptionpublic org.apache.jackrabbit.core.security.authentication.token.TokenInfo getTokenInfo(String token) throws RepositoryException
Tree exists for the given token or if
the token is not associated with a valid user this method returns null.token - A valid login token.TokenInfo associated with the specified token or
null of the corresponding information does not exist or is not
associated with a valid user.RepositoryExceptionCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.