| Package | Description |
|---|---|
| de.aristaflow.adept2.base.sessionmanagement |
| Modifier and Type | Method and Description |
|---|---|
QualifiedAgent |
SessionFactory.checkAndGetAgent(SessionToken sessionToken)
Checks the integrity of the (security token of the) designated session
token and returns the agent of the (child level) session token.
|
QualifiedAgent |
SessionFactory.checkAndGetTopLevelAgent(SessionToken sessionToken)
Checks the integrity of the (security token of the) top-level session of
the designated session token and returns the agent of the corresponding
top-level session token.
|
void |
SessionFactory.checkIntegrity(SessionToken sessionToken)
Checks the integrity of the (security token of the) designated session
token.
|
java.util.UUID |
SignedSecurityToken.getID(java.security.PublicKey publicKey)
Verifies the token and gets the unique ID of this security token which can
be used like a revision to invalidate a security token.
|
QualifiedAgent |
SignedSecurityToken.getQualifiedAgent(java.security.PublicKey publicKey)
Verifies the token and returns the object representing the agent who is
identified by this security token.
|
SessionToken |
SessionFactory.getSubstituteSessionToken(SessionToken callerSession,
SignedSecurityToken substitutedToken)
Creates a new (top-level) session token for the designated caller session
with the designated security information for usage as substitute.
|
SessionToken |
SessionFactory.getSubstituteSessionToken(SessionToken callerSession,
SignedSecurityToken substitutedToken,
java.util.Map<java.lang.String,java.lang.String> additionalAttributes)
Creates a new (top-level) session token for the designated caller session
with the designated security information and the designated additional
attributes for usage as substitute.
|
boolean |
SignedSecurityToken.hasCapability(java.security.PublicKey publicKey,
java.lang.String objectAccess)
Verifies the token and returns whether the owner of this token is allowed
to access the designated object in the designated way, for instance,
"ReadInstance".
|
boolean |
SessionFactory.hasCapability(SessionToken sessionToken,
java.lang.String capability)
Checks the integrity of the (security token of the) designated session
token and returns whether the (security token of the) designated session
has the designated capability.
|
boolean |
SessionFactory.hasTopLevelCapability(SessionToken sessionToken,
java.lang.String capability)
Checks the integrity of the (security token of the) top-level session of
the designated session token and returns whether the (security token of
the) top-level session of the designated session has the designated
capability.
|
void |
SignedSecurityToken.verify(java.security.PublicKey publicKey)
Verifies the signature of the security token against the designated public
key.
|
| Constructor and Description |
|---|
SignedSecurityToken(QualifiedAgent agent,
java.util.Collection<java.lang.String> capabilities,
java.security.PrivateKey privateKey)
Creates a new security token for the qualified agent providing the
designated capabilities and signs it with the designated private key.
|