|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.Descriptor<AuthorizeProjectStrategy>
org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategyDescriptor
org.jenkinsci.plugins.authorizeproject.strategy.SpecificUsersAuthorizationStrategy.DescriptorImpl
@Extension public static class SpecificUsersAuthorizationStrategy.DescriptorImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
|---|
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType, hudson.model.Descriptor.Self |
| Field Summary |
|---|
| Fields inherited from class hudson.model.Descriptor |
|---|
clazz |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
|
SpecificUsersAuthorizationStrategy.DescriptorImpl()
|
protected |
SpecificUsersAuthorizationStrategy.DescriptorImpl(Class<? extends AuthorizeProjectStrategy> clazz)
For testing purpose. |
| Method Summary | |
|---|---|
protected boolean |
authenticate(SpecificUsersAuthorizationStrategy strategy,
org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
Authenticate the specified user. |
protected boolean |
authenticate(SpecificUsersAuthorizationStrategy strategy,
String password)
Authenticate the specified user. |
protected boolean |
authenticateWithApitoken(SpecificUsersAuthorizationStrategy strategy,
String apitoken)
Authenticate the specified user with Apitoken. |
String |
calcCheckPasswordRequestedUrl()
|
hudson.util.FormValidation |
doCheckNoNeedReauthentication(boolean noNeedReauthentication)
|
hudson.util.FormValidation |
doCheckPassword(org.kohsuke.stapler.StaplerRequest req,
String userid,
String password,
String apitoken,
boolean useApitoken,
boolean noNeedReauthentication)
|
String |
doCheckPasswordRequested(org.kohsuke.stapler.StaplerRequest req,
String userid,
boolean noNeedReauthentication)
Checks password field is required in configuration page. |
hudson.util.FormValidation |
doCheckUserid(String userid)
|
String |
getDisplayName()
|
boolean |
isEnabledByDefault()
SpecificUsersAuthorizationStrategy should be disabled by default for JENKINS-28298 |
boolean |
isUseApitoken()
|
SpecificUsersAuthorizationStrategy |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
Create a new instance. |
protected SpecificUsersAuthorizationStrategy |
newInstanceWithoutAuthentication(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
Create a new instance. |
| Methods inherited from class org.jenkinsci.plugins.authorizeproject.AuthorizeProjectStrategyDescriptor |
|---|
configureFromGlobalSecurity, getConfigFile, getDescriptorsForGlobalSecurityConfigPage, getGlobalSecurityConfigPage |
| Methods inherited from class hudson.model.Descriptor |
|---|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckMethod, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpecificUsersAuthorizationStrategy.DescriptorImpl()
protected SpecificUsersAuthorizationStrategy.DescriptorImpl(Class<? extends AuthorizeProjectStrategy> clazz)
clazz - set SpecificUsersAuthorizationStrategy.class| Method Detail |
|---|
public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<AuthorizeProjectStrategy>Descriptor.getDisplayName()
protected SpecificUsersAuthorizationStrategy newInstanceWithoutAuthentication(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
req - formData -
hudson.model.Descriptor.FormException - thrown when the input is incomplete.
protected boolean authenticate(SpecificUsersAuthorizationStrategy strategy,
String password)
strategy - password -
protected boolean authenticateWithApitoken(SpecificUsersAuthorizationStrategy strategy,
String apitoken)
strategy - apitoken -
protected boolean authenticate(SpecificUsersAuthorizationStrategy strategy,
org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
strategy - req - formData -
public SpecificUsersAuthorizationStrategy newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
newInstance in class hudson.model.Descriptor<AuthorizeProjectStrategy>req - formData -
hudson.model.Descriptor.FormException - thrown when the input is incomplete, or authentication failed.public String calcCheckPasswordRequestedUrl()
public String doCheckPasswordRequested(org.kohsuke.stapler.StaplerRequest req,
@QueryParameter
String userid,
@QueryParameter
boolean noNeedReauthentication)
req - userid - noNeedReauthentication -
public hudson.util.FormValidation doCheckUserid(@QueryParameter
String userid)
userid -
public hudson.util.FormValidation doCheckPassword(org.kohsuke.stapler.StaplerRequest req,
@QueryParameter
String userid,
@QueryParameter
String password,
@QueryParameter
String apitoken,
@QueryParameter
boolean useApitoken,
@QueryParameter
boolean noNeedReauthentication)
req - userid - password - noNeedReauthentication -
public hudson.util.FormValidation doCheckNoNeedReauthentication(@QueryParameter
boolean noNeedReauthentication)
noNeedReauthentication -
public boolean isUseApitoken()
public boolean isEnabledByDefault()
SpecificUsersAuthorizationStrategy should be disabled by default for JENKINS-28298
isEnabledByDefault in class AuthorizeProjectStrategyDescriptorAuthorizeProjectStrategyDescriptor.isEnabledByDefault()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||