Package jenkins.security.seed
Class UserSeedProperty
java.lang.Object
hudson.model.UserProperty
jenkins.security.seed.UserSeedProperty
- All Implemented Interfaces:
ExtensionPoint
,Describable<UserProperty>
,ReconfigurableDescribable<UserProperty>
The seed stored in this property is used to have a revoke feature on the session
without having to hack the session management that depends on the application server used to run the instance.
The seed is added to the session when a user just logged in and then for every request,
before using the session information, we check the seed was not changed in the meantime.
This feature allows the admin to revoke all the sessions that are in the wild without having to keep a list of them.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
Escape hatch for User seed based revocation feature.static boolean
Hide the user seed section from the UI to prevent accidental usestatic final String
Fields inherited from class hudson.model.UserProperty
user
-
Method Summary
Methods inherited from class hudson.model.UserProperty
all, allByCategoryClass, getDescriptor, reconfigure, reconfigure, setUser
-
Field Details
-
DISABLE_USER_SEED
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean DISABLE_USER_SEEDEscape hatch for User seed based revocation feature. If we disable the seed, we can still use it to write / store information but not verifying the data using it. -
HIDE_USER_SEED_SECTION
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean HIDE_USER_SEED_SECTIONHide the user seed section from the UI to prevent accidental use -
USER_SESSION_SEED
- See Also:
-
-
Method Details
-
getSeed
-
renewSeed
public void renewSeed()
-