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, setProperty
public 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.RepositoryException
public 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.RepositoryException
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.