100+ results for '"String password"'
Not the results you expected?
UserRepository.cs (https://bitbucket.org/sourcecode71/arml.git) C# · 242 lines
86 return results.ToList();
87 }
88 public string CheckUserAuthentication(string UserId, string Password)
89 {
90 string iReturnValue = Context.USP_SEC_CHECK_USER_AUTHENTICATION(UserId, Password).SingleOrDefault();
91 return iReturnValue;
92 }
93 public string CheckUserPagePermission(string UserId, string PageId)
94 {
95 string iReturnValue = Context.USP_SEC_CHECK_USER_PERMISSION(UserId, PageId).SingleOrDefault();
96 return iReturnValue;
97 }
98 public void SaveUserSession(string strGuid, string strUserId, string strPassword, string strHostIP)
99 {
100 SEC_LOGIN_HISTORY logHis = Context.SEC_LOGIN_HISTORY.CreateObject();
HttpServletRequestWrapper.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 296 lines
78 * on the wrapped request object.
79 */
80 public String getHeader(String name) {
81 return this._getHttpServletRequest().getHeader(name);
82 }
86 * on the wrapped request object.
87 */
88 public Enumeration<String> getHeaders(String name) {
89 return this._getHttpServletRequest().getHeaders(name);
90 }
142 * wrapped request object.
143 */
144 public String getQueryString() {
145 return this._getHttpServletRequest().getQueryString();
265 * @since Servlet 3.0 TODO SERVLET3 - Add comments
266 */
267 public void login(String username, String password) throws ServletException {
268 this._getHttpServletRequest().login(username, password);
nsICertificateDialogs.h (https://github.com/wyona/yulup.git) C Header · 220 lines
131 NS_IMETHOD ConfirmDownloadCACert(nsIInterfaceRequestor *ctx, nsIX509Cert *cert, PRUint32 *trust, PRBool *_retval) { return _to ConfirmDownloadCACert(ctx, cert, trust, _retval); } \
132 NS_IMETHOD NotifyCACertExists(nsIInterfaceRequestor *ctx) { return _to NotifyCACertExists(ctx); } \
133 NS_IMETHOD SetPKCS12FilePassword(nsIInterfaceRequestor *ctx, nsAString & password, PRBool *_retval) { return _to SetPKCS12FilePassword(ctx, password, _retval); } \
134 NS_IMETHOD GetPKCS12FilePassword(nsIInterfaceRequestor *ctx, nsAString & password, PRBool *_retval) { return _to GetPKCS12FilePassword(ctx, password, _retval); } \
142 NS_IMETHOD SetPKCS12FilePassword(nsIInterfaceRequestor *ctx, nsAString & password, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPKCS12FilePassword(ctx, password, _retval); } \
143 NS_IMETHOD GetPKCS12FilePassword(nsIInterfaceRequestor *ctx, nsAString & password, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPKCS12FilePassword(ctx, password, _retval); } \
144 NS_IMETHOD ViewCert(nsIInterfaceRequestor *ctx, nsIX509Cert *cert) { return !_to ? NS_ERROR_NULL_POINTER : _to->ViewCert(ctx, cert); } \
145 NS_IMETHOD CrlImportStatusDialog(nsIInterfaceRequestor *ctx, nsICRLInfo *crl) { return !_to ? NS_ERROR_NULL_POINTER : _to->CrlImportStatusDialog(ctx, crl); }
189 }
191 /* boolean setPKCS12FilePassword (in nsIInterfaceRequestor ctx, out AString password); */
192 NS_IMETHODIMP nsCertificateDialogs::SetPKCS12FilePassword(nsIInterfaceRequestor *ctx, nsAString & password, PRBool *_retval)
195 }
197 /* boolean getPKCS12FilePassword (in nsIInterfaceRequestor ctx, out AString password); */
198 NS_IMETHODIMP nsCertificateDialogs::GetPKCS12FilePassword(nsIInterfaceRequestor *ctx, nsAString & password, PRBool *_retval)
WebExSiteServiceClp.java (https://github.com/kiyoshilee/liferay-plugins.git) Java · 346 lines
60 "long", "java.lang.String", "java.lang.String",
61 "java.lang.String", "java.lang.String", "java.lang.String",
62 "long", "com.liferay.portal.kernel.service.ServiceContext"
63 };
67 _methodParameterTypes8 = new String[] {
68 "long", "java.lang.String", "java.lang.String",
69 "java.lang.String",
250 java.lang.String apiURL, java.lang.String login,
251 java.lang.String password, java.lang.String partnerKey, long siteKey,
252 com.liferay.portal.kernel.service.ServiceContext serviceContext)
253 throws com.liferay.portal.kernel.exception.PortalException {
293 public void updateWebExSite(long webExSiteId, java.lang.String apiURL,
294 java.lang.String login, java.lang.String password,
295 com.liferay.portal.kernel.service.ServiceContext serviceContext)
296 throws com.liferay.portal.kernel.exception.PortalException {
FirebaseiOSImpl.cs (https://gitlab.com/vectorci/Firebase-Unity) C# · 289 lines
28 static OnAuthCancelHandler authFailureHandler = new OnAuthCancelHandler(onAuthCancel);
30 public delegate void OnAuthSuccessHandler(int reference, String token, String uid, int expiration);
31 public delegate void OnAuthCancelHandler(int reference, int code, String message, String details);
104 private static extern void _FirebaseAuthWithPassword (IntPtr firebase, string email,
105 string password,
106 OnAuthSuccessHandler success, OnAuthCancelHandler cancel,
107 int callback);
207 }
209 public void AuthWithPassword (string email, string password, Action<AuthData> onSuccess, Action<FirebaseError> onError)
210 {
211 lock (auth_sync) {
255 [MonoPInvokeCallbackAttribute(typeof(OnAuthCancelHandler))]
256 static void onAuthCancel(int reference, int code, String message, String details) {
257 Action<FirebaseError> callback = null;
258 lock (auth_sync) {
MailSubsystemParser.java (https://github.com/porobd/jboss-as.git) Java · 236 lines
85 writer.writeEmptyElement(Element.forName(name).getLocalName());
86 }
87 writer.writeAttribute(Attribute.SERVER_ADDRESS.getLocalName(), server.get(ModelKeys.SERVER_ADDRESS).asString());
88 writer.writeAttribute(Attribute.SERVER_PORT.getLocalName(), server.get(ModelKeys.SERVER_PORT).asString());
91 writer.writeAttribute(Attribute.USERNAME.getLocalName(), server.get(ModelKeys.CREDENTIALS).get(ModelKeys.USERNAME).asString());
92 writer.writeAttribute(Attribute.PASSWORD.getLocalName(), server.get(ModelKeys.CREDENTIALS).get(ModelKeys.PASSWORD).asString());
93 writer.writeEndElement();
94 }
166 String value = reader.getAttributeValue(i);
167 if (attr == Attribute.JNDI_NAME) {
168 String jndiName = value;
169 log.trace("jndi name: " + jndiName);
170 cfg.setJndiName(jndiName);
213 String username = null;
214 String password = null;
215 while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
216 final Element element = Element.forName(reader.getLocalName());
AccountManager.java (https://github.com/JTroniks/CyanogenMod-7.git) Java · 57 lines
12 public android.accounts.AccountManagerFuture<android.accounts.Account[]> getAccountsByTypeAndFeatures(java.lang.String type, java.lang.String[] features, android.accounts.AccountManagerCallback<android.accounts.Account[]> callback, android.os.Handler handler) { throw new RuntimeException("Stub!"); }
13 public boolean addAccountExplicitly(android.accounts.Account account, java.lang.String password, android.os.Bundle userdata) { throw new RuntimeException("Stub!"); }
14 public android.accounts.AccountManagerFuture<java.lang.Boolean> removeAccount(android.accounts.Account account, android.accounts.AccountManagerCallback<java.lang.Boolean> callback, android.os.Handler handler) { throw new RuntimeException("Stub!"); }
15 public void invalidateAuthToken(java.lang.String accountType, java.lang.String authToken) { throw new RuntimeException("Stub!"); }
16 public java.lang.String peekAuthToken(android.accounts.Account account, java.lang.String authTokenType) { throw new RuntimeException("Stub!"); }
17 public void setPassword(android.accounts.Account account, java.lang.String password) { throw new RuntimeException("Stub!"); }
18 public void clearPassword(android.accounts.Account account) { throw new RuntimeException("Stub!"); }
23 public android.accounts.AccountManagerFuture<android.os.Bundle> getAuthToken(android.accounts.Account account, java.lang.String authTokenType, boolean notifyAuthFailure, android.accounts.AccountManagerCallback<android.os.Bundle> callback, android.os.Handler handler) { throw new RuntimeException("Stub!"); }
24 public android.accounts.AccountManagerFuture<android.os.Bundle> addAccount(java.lang.String accountType, java.lang.String authTokenType, java.lang.String[] requiredFeatures, android.os.Bundle addAccountOptions, android.app.Activity activity, android.accounts.AccountManagerCallback<android.os.Bundle> callback, android.os.Handler handler) { throw new RuntimeException("Stub!"); }
25 public android.accounts.AccountManagerFuture<android.os.Bundle> confirmCredentials(android.accounts.Account account, android.os.Bundle options, android.app.Activity activity, android.accounts.AccountManagerCallback<android.os.Bundle> callback, android.os.Handler handler) { throw new RuntimeException("Stub!"); }
26 public android.accounts.AccountManagerFuture<android.os.Bundle> updateCredentials(android.accounts.Account account, java.lang.String authTokenType, android.os.Bundle options, android.app.Activity activity, android.accounts.AccountManagerCallback<android.os.Bundle> callback, android.os.Handler handler) { throw new RuntimeException("Stub!"); }
27 public android.accounts.AccountManagerFuture<android.os.Bundle> editProperties(java.lang.String accountType, android.app.Activity activity, android.accounts.AccountManagerCallback<android.os.Bundle> callback, android.os.Handler handler) { throw new RuntimeException("Stub!"); }
28 public android.accounts.AccountManagerFuture<android.os.Bundle> getAuthTokenByFeatures(java.lang.String accountType, java.lang.String authTokenType, java.lang.String[] features, android.app.Activity activity, android.os.Bundle addAccountOptions, android.os.Bundle getAuthTokenOptions, android.accounts.AccountManagerCallback<android.os.Bundle> callback, android.os.Handler handler) { throw new RuntimeException("Stub!"); }
29 public void addOnAccountsUpdatedListener(android.accounts.OnAccountsUpdateListener listener, android.os.Handler handler, boolean updateImmediately) { throw new RuntimeException("Stub!"); }
30 public void removeOnAccountsUpdatedListener(android.accounts.OnAccountsUpdateListener listener) { throw new RuntimeException("Stub!"); }
41 public static final java.lang.String KEY_INTENT = "intent";
42 public static final java.lang.String KEY_PASSWORD = "password";
43 public static final java.lang.String KEY_ACCOUNTS = "accounts";
Kunde.java (https://bitbucket.org/cprenzberg/resteasy.git) Java · 311 lines
79 @XmlTransient
80 protected String password = "";
82 @XmlTransient
254 @Override
255 public String toString()
256 {
257 return "id=" + id + ", version=" + version +
260 ", seit=" + getSeitAsString(DateFormat.MEDIUM, Locale.GERMANY) +
261 ", anzJahre=" + getAnzJahre() +
262 ", password=" + password +
263 ", erzeugt=" + erzeugt +
264 ", aktualisiert=" + aktualisiert;
KnowledgeBaseAttachmentResource.java (https://github.com/kiyoshilee/liferay-portal.git) Java · 409 lines
82 public static class Builder {
84 public Builder authentication(String login, String password) {
85 _login = login;
86 _password = password;
93 }
95 public Builder endpoint(String host, int port, String scheme) {
96 _host = host;
97 _port = port;
128 private String _password = "test";
129 private Map<String, String> _parameters = new LinkedHashMap<>();
130 private int _port = 8080;
131 private String _scheme = "http";
370 }
372 for (Map.Entry<String, String> entry :
373 _builder._headers.entrySet()) {
Security.designer.cs (https://gitlab.com/DiruzCode/ingenio_streaming) C# · 352 lines
90 private string _username;
92 private string _password;
94 public CustomCredentials()
114 [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_password", CanBeNull=false)]
115 public string password
116 {
117 get
121 set
122 {
123 if ((this._password != value))
124 {
125 this._password = value;
141 private string _email;
143 private string _fullname;
145 private System.DateTime _lastConnection;
SslConnector.java (https://github.com/dekellum/jetty.git) Java · 330 lines
35 /** String name of keystore password property. @deprecated */
36 @Deprecated
37 public static final String PASSWORD_PROPERTY = "org.eclipse.jetty.ssl.password";
86 */
87 @Deprecated
88 public abstract void setPassword(String password);
90 /* ------------------------------------------------------------ */
103 */
104 @Deprecated
105 public abstract void setKeyPassword(String password);
107 /* ------------------------------------------------------------ */
UserEntity.java (https://github.com/akollegger/akka-jersey-samples.git) Java · 225 lines
58 @NamedQueries( {
59 @NamedQuery(name = "UserEntity.findByUserid", query = "SELECT u FROM UserEntity u WHERE u.userid = :userid"),
60 @NamedQuery(name = "UserEntity.findByPassword", query = "SELECT u FROM UserEntity u WHERE u.password = :password"),
61 @NamedQuery(name = "UserEntity.findByUsername", query = "SELECT u FROM UserEntity u WHERE u.username = :username"),
62 @NamedQuery(name = "UserEntity.findByEmail", query = "SELECT u FROM UserEntity u WHERE u.email = :email")
70 @Column(name = "PASSWORD", nullable = false)
71 private String password;
73 @Column(name = "USERNAME")
97 * @param password the password of the UserEntity
98 */
99 public UserEntity(String userid, String password) {
100 this.userid = userid;
101 this.password = password;
130 * @param password the new password
131 */
132 public void setPassword(String password) {
133 this.password = password;
UserDao.java (https://gitlab.com/FoodUpProject/FoodUp) Java · 573 lines
107 public String getPasswordByMail(Connection con, String email) throws SQLException {
108 PreparedStatement ps = null;
109 ResultSet rs = null;
148 public int getUserId(Connection con, String email, String password) throws SQLException {
150 PreparedStatement ps = null;
305 }
307 public int insertUser(Connection con, User user, String password) throws SQLException {
309 PreparedStatement ps = null;
AbstractRadiusServer.java (https://github.com/frett/cas.git) Java · 195 lines
72 */
73 private final RadiusClientFactory radiusClientFactory;
74 private final String nasIpAddress;
76 private final String nasIpv6Address;
95 public AbstractRadiusServer(final RadiusProtocol protocol, final RadiusClientFactory clientFactory, final int retries,
96 final String nasIpAddress, final String nasIpv6Address, final long nasPort, final long nasPortId,
97 final String nasIdentifier, final long nasRealPort, final long nasPortType) {
110 @Override
111 public final CasRadiusResponse authenticate(final String username, final String password, final Optional state) throws Exception {
112 val attributeList = new AttributeList();
118 if (StringUtils.isNotBlank(password)) {
119 attributeList.add(new Attr_UserPassword(password));
120 }
Utilities.cs (https://gitlab.com/cealer/Notas) C# · 216 lines
84 }
86 public static void CreateUserASP(string email, string roleName, string password)
87 {
88 var userManager = new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(userContext));
98 }
100 public static async Task SendMail(string to, string subject, string body)
101 {
102 var message = new MailMessage();
123 }
125 public static async Task SendMail(List<string> mails, string subject, string body)
126 {
127 var message = new MailMessage();
ArcSDEConnectionConfig.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 223 lines
48 /** ArcSDE database user password parameter name */
49 public static final String PASSWORD_PARAM_NAME = "password";
51 public static final String MIN_CONNECTIONS_PARAM_NAME = "pool.minConnections";
69 /** database user password */
70 private String password;
72 /** minimum number of connection held in reserve, often 0 */
119 }
121 public void setPassword(String password) {
122 this.password = password;
198 config.setDatabaseName(String.valueOf(map.get(INSTANCE_NAME_PARAM_NAME)));
199 config.setPassword(String.valueOf(map.get(PASSWORD_PARAM_NAME)));
200 config.setPortNumber(String.valueOf(map.get(PORT_NUMBER_PARAM_NAME)));
Driver40.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 208 lines
174 */
175 protected PooledConnection getNewPooledConnection(
176 EmbeddedDataSource eds, String user, String password,
177 boolean requestPassword) throws SQLException
178 {
179 return new EmbedPooledConnection40(
180 eds, user, password, requestPassword);
181 }
187 protected XAConnection getNewXAConnection(
188 EmbeddedDataSource eds, ResourceAdapter ra,
189 String user, String password, boolean requestPassword)
190 throws SQLException
191 {
192 return new EmbedXAConnection40(
193 eds, ra, user, password, requestPassword);
194 }
CloudFoundryCommands.java (https://github.com/abadongutierrez/spring-roo.git) Java · 257 lines
51 public void login(
52 @CliOption(key = "email", mandatory = false, help = "The user's email address") CloudLoginEmail loginEmail,
53 @CliOption(key = "password", mandatory = false, help = "The user's password") String password,
54 @CliOption(key = "cloudControllerUrl", mandatory = false, help = "The cloud controller to target. Defaults to '" + UaaAwareAppCloudClient.CLOUD_FOUNDRY_URL + "'") CloudControllerUrl cloudControllerUrl) {
56 String url = null;
57 String email = null;
62 email = loginEmail.getEmail();
63 }
64 cloudFoundryOperations.login(email, password, url);
65 }
73 public void createService(
74 @CliOption(key = "serviceType", mandatory = true, help = "The service type") ServiceConfiguration service,
75 @CliOption(key = "serviceName", mandatory = true, help = "The name of your service instance") String name,
76 @CliOption(key = "appName", mandatory = false, help = "The name of the app to bind the service to") CloudApp bind) {
CassandraCacheStoreConfig.java (https://bitbucket.org/cprenzberg/infinispan.git) Java · 254 lines
79 /**
80 * @configRef desc=
81 * "The keymapper for converting keys to strings (uses the DefaultTwoWayKey2Stringmapper by default)"
82 */
83 String keyMapper = DefaultTwoWayKey2StringMapper.class.getName();
168 }
170 public String getPassword() {
171 return poolProperties.getPassword();
181 }
183 public void setPassword(String password) {
184 poolProperties.setPassword(password);
223 // Apply all properties to the PoolProperties object
224 for (String propertyName : p.stringPropertyNames()) {
225 poolProperties.set(propertyName, p.getProperty(propertyName));
226 }
WorkflowInstanceResource.java (https://github.com/brunobasto/liferay-portal.git) Java · 505 lines
86 public static class Builder {
88 public Builder authentication(String login, String password) {
89 _login = login;
90 _password = password;
181 }
183 for (Map.Entry<String, String> entry :
184 _builder._headers.entrySet()) {
341 }
343 for (Map.Entry<String, String> entry :
344 _builder._parameters.entrySet()) {
UserApi.java (https://github.com/OpenAPITools/openapi-generator.git) Java · 222 lines
138 for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
139 if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
140 String exampleString = "{ \"firstName\" : \"firstName\", \"lastName\" : \"lastName\", \"password\" : \"password\", \"userStatus\" : 6, \"phone\" : \"phone\", \"id\" : 0, \"email\" : \"email\", \"username\" : \"username\" }";
141 ApiUtil.setExampleResponse(request, "application/json", exampleString);
143 }
144 if (mediaType.isCompatibleWith(MediaType.valueOf("application/xml"))) {
145 String exampleString = "<User> <id>123456789</id> <username>aeiou</username> <firstName>aeiou</firstName> <lastName>aeiou</lastName> <email>aeiou</email> <password>aeiou</password> <phone>aeiou</phone> <userStatus>123</userStatus> </User>";
146 ApiUtil.setExampleResponse(request, "application/xml", exampleString);
158 *
159 * @param username The user name for login (required)
160 * @param password The password for login in clear text (required)
161 * @return successful operation (status code 200)
162 * or Invalid username/password supplied (status code 400)
172 produces = { "application/xml", "application/json" }
173 )
174 default ResponseEntity<String> loginUser(@NotNull @ApiParam(value = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) String username,@NotNull @ApiParam(value = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) String password) {
175 return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
IsolationLevelDataSourceAdapter.java (https://github.com/keesun/spring-framework.git) Java · 165 lines
51 * @see #setIsolationLevelName
52 * @see #setUsername
53 * @see #setPassword
54 */
55 public class IsolationLevelDataSourceAdapter extends UserCredentialsDataSourceAdapter {
75 * @see #setIsolationLevel
76 */
77 public final void setIsolationLevelName(String constantName) throws IllegalArgumentException {
78 if (constantName == null || !constantName.startsWith(DefaultTransactionDefinition.PREFIX_ISOLATION)) {
79 throw new IllegalArgumentException("Only isolation constants allowed");
124 */
125 @Override
126 protected Connection doGetConnection(String username, String password) throws SQLException {
127 Connection con = super.doGetConnection(username, password);
EnterpriseDMReceiver.java (https://github.com/xl8or/-.git) Java · 189 lines
25 public static String INSTALL_CERTIFICATE = "com.android.email.INSTALL_CERTIFICATE";
26 public static final String PASSWORD_KEY = "password";
27 public static String RENAME_CERTIFICATE = "com.android.email.RENAME_CERTIFICATE";
72 if(var11.equals(var12)) {
73 int var13 = Log.v(TAG, "onReceive ACCOUNT_DELETED");
74 String var14 = var2.getStringExtra("alias");
75 if(var14 != null) {
76 try {
145 public void run() {
146 long var1 = this.val$intent.getLongExtra("accountid", 65535L);
147 String var3 = this.val$intent.getStringExtra("alias");
148 EmailContent.Account var4 = EmailContent.Account.restoreAccountWithId(this.val$context, var1);
149 String var5 = EnterpriseDMReceiver.TAG;
176 public void run() {
177 String var1 = this.val$intent.getStringExtra("password");
178 byte[] var2 = this.val$intent.getByteArrayExtra("data");
179 long var3 = this.val$intent.getLongExtra("accountid", 65535L);
UserAccount.java (https://github.com/danielreuther/liferay-portal.git) Java · 660 lines
62 }
64 public void setActions(Map<String, Map<String, String>> actions) {
65 this.actions = actions;
66 }
68 public void setActions(
69 UnsafeSupplier<Map<String, Map<String, String>>, Exception>
70 actionsUnsafeSupplier) {
522 }
524 public void setPassword(String password) {
525 this.password = password;
649 @Override
650 public int hashCode() {
651 String string = toString();
653 return string.hashCode();
XmlRpcWorker.java (https://gitlab.com/manoj-makkuboy/magnetism) Java · 189 lines
112 * request. This method executes the handler method with the default context.
113 */
114 public byte[] execute(InputStream is, String user, String password)
115 {
116 return execute(is, defaultContext(user, password));
180 *
181 * @param user the username of the user making the request.
182 * @param password the password of the user making the request.
183 * @return XmlRpcContext the context for the reqeust.
184 */
185 protected XmlRpcContext defaultContext(String user, String password)
186 {
187 return new DefaultXmlRpcContext(user, password, handlerMapping);
PortletKeys.java (https://github.com/danielreuther/liferay-portal.git) Java · 206 lines
20 public class PortletKeys {
22 public static final String ADMIN_PLUGINS = "136";
24 public static final String ALERTS =
25 "com_liferay_announcements_web_portlet_AlertsPortlet";
27 public static final String ANNOUNCEMENTS =
28 "com_liferay_announcements_web_portlet_AnnouncementsPortlet";
30 public static final String BACKGROUND_TASK = "189";
32 public static final String BLOGS =
128 "com_liferay_nested_portlets_web_portlet_NestedPortletsPortlet";
130 public static final String PASSWORD_POLICIES_ADMIN =
131 "com_liferay_password_policies_admin_web_portlet_" +
ExternalServicesPropertiesReadPlatformServiceImpl.java (https://gitlab.com/skylabase/incubator-fineract) Java · 150 lines
71 String username = null;
72 String password = null;
73 String host = null;
79 username = rs.getString("value");
80 } else if (rs.getString("name").equalsIgnoreCase(ExternalServicesConstants.SMTP_PASSWORD)) {
81 password = rs.getString("value");
82 } else if (rs.getString("name").equalsIgnoreCase(ExternalServicesConstants.SMTP_HOST)) {
83 host = rs.getString("value");
84 } else if (rs.getString("name").equalsIgnoreCase(ExternalServicesConstants.SMTP_PORT)) {
97 public ExternalServicesPropertiesData mapRow(ResultSet rs, @SuppressWarnings("unused") int rowNum) throws SQLException {
98 // TODO Auto-generated method stub
99 final String name = rs.getString("name");
100 String value = rs.getString("value");
101 // Masking the password as we should not send the password back
102 if (name != null && "password".equalsIgnoreCase(name)) {
NodeResource.java (https://github.com/yangbenf/abiquo.git) Java · 191 lines
90 @GET
91 @Path(HYPERVISOR)
92 public String getHypervisorType(@PathParam(HOST_IP) @NotNull @Ip final String ip,
93 @QueryParam(AIMPORT) @DefaultValue("8889") @Port final Integer aimport)
94 throws NodecollectorException
113 @QueryParam("user") @NotNull final String user,
114 @QueryParam("passwd") @NotNull final String password,
115 @QueryParam(AIMPORT) @DefaultValue("8889") @Port final Integer aimport)
116 throws NodecollectorException
143 @QueryParam("user") @NotNull final String user,
144 @QueryParam("passwd") @NotNull final String password,
145 @QueryParam(AIMPORT) @DefaultValue("8889") @Port final Integer aimport)
146 throws NodecollectorException
172 @QueryParam("user") @NotNull final String user,
173 @QueryParam("passwd") @NotNull final String password,
174 @QueryParam(AIMPORT) @DefaultValue("8889") @Port final Integer aimport)
175 throws NodecollectorException
AsyncOAuthSupport.java (https://github.com/Mocel/twitter4j.git) Java · 130 lines
53 * @since Twitter4J 3.0.0
54 */
55 void getOAuthRequestTokenAsync(String callbackURL, String xAuthAccessType);
67 * @since Twitter4J 3.0.0
68 */
69 void getOAuthRequestTokenAsync(String callbackURL, String xAuthAccessType, String xAuthMode);
126 * @since Twitter 3.0.0
127 */
128 void getOAuthAccessTokenAsync(String screenName, String password);
130 }
PeopleServiceImplTest.java (https://bitbucket.org/vlalov/rivetlogic-cma.git) Java · 265 lines
57 // user variables
58 String firstName1 = "cmaTestUser1FirstName";
59 String lastName1 = "cmaTestUser1LastName";
60 String userName1 = "peopleServiceCmaTestUser " + System.currentTimeMillis();
61 String password1 = "peopleServiceCmaTestUser1";
62 String firstName2 = "cmaTestUser2FirstName";
64 String userName2 = "peopleServiceCmaTestUser " + System.currentTimeMillis() + 1;
65 String password2 = "peopleServiceCmaTestUser2";
67 private Ticket ticket = null;
244 assertNotNull(user2Ticket);
246 List<String> authorities = new ArrayList<String>(2);
247 authorities.add(userName1);
248 authorities.add(userName2);
JotifyPool.java (https://github.com/arildbjerkenes/jotify.git) Java · 554 lines
116 }
118 public void login(String username, String password) throws ConnectionException, AuthenticationException {
119 /* Check if connections are available. */
120 if(!this.connectionList.isEmpty()){
156 }
158 public Result toplist(String type, String region, String username) throws TimeoutException {
159 Jotify connection = this.getConnection();
361 }
363 public Playlist playlistCreate(String name, boolean collaborative, String description, String picture) throws TimeoutException {
364 Jotify connection = this.getConnection();
SshComponentConfiguration.java (https://gitlab.com/matticala/apache-camel) Java · 401 lines
56 * keyPairProvider to be set to null.
57 */
58 private String password;
59 /**
60 * Sets the command string to send to the remote SSH server during every
136 }
138 public void setPassword(String password) {
139 this.password = password;
230 * representing password for username at remote host.
231 */
232 private String password;
233 /**
234 * Sets the command string to send to the remote SSH server during every
328 }
330 public void setPassword(String password) {
331 this.password = password;
WelcomeBackPasswordHandler.java (https://github.com/firebase/FirebaseUI-Android.git) Java · 155 lines
36 public class WelcomeBackPasswordHandler extends SignInViewModelBase {
37 private static final String TAG = "WBPasswordHandler";
39 private String mPendingPassword;
48 public void startSignIn(@NonNull final String email,
49 @NonNull final String password,
50 @NonNull final IdpResponse inputResponse,
51 @Nullable final AuthCredential credential) {
111 } else {
112 // Kick off the flow including signing in, linking accounts, and saving with SmartLock
113 getAuth().signInWithEmailAndPassword(email, password)
114 .continueWithTask(new Continuation<AuthResult, Task<AuthResult>>() {
115 @Override
150 * Get the most recent pending password.
151 */
152 public String getPendingPassword() {
153 return mPendingPassword;
XmlRpcHandler.cs (https://bitbucket.org/oleg_ator/orchard.test.git) C# · 170 lines
51 MetaWeblogSetCustomPublishedDate(
52 GetId(context.Response),
53 Convert.ToString(context.Request.Params[0].Value),
54 Convert.ToString(context.Request.Params[1].Value),
77 }
79 private void MetaWeblogGetCustomPublishedDate(XRpcStruct postStruct, int itemId, string userName, string password, ICollection<IXmlRpcDriver> drivers) {
80 if (itemId < 1)
81 return;
105 }
107 private void MetaWeblogSetCustomPublishedDate(int contentItemId, string appKey, string userName, string password, XRpcStruct content, bool publish, ICollection<IXmlRpcDriver> drivers) {
108 var user = ValidateUser(userName, password);
147 }
149 private IUser ValidateUser(string userName, string password) {
150 IUser user = _membershipService.ValidateUser(userName, password);
WS.java (https://github.com/julienrf/playframework.git) Java · 355 lines
59 }
61 private WSRequest auth(String username, String password, AuthScheme scheme) {
62 this.setRealm((new RealmBuilder())
63 .setScheme(scheme)
102 private final String url;
103 private Map<String, Collection<String>> headers = new HashMap<String, Collection<String>>();
104 private Map<String, Collection<String>> queryParameters = new HashMap<String, Collection<String>>();
155 * @param scheme authentication scheme
156 */
157 public WSRequestHolder setAuth(String username, String password, AuthScheme scheme) {
158 this.username = username;
159 this.password = password;
253 }
255 private Promise<Response> executeString(String method, String body) {
256 WSRequest req = new WSRequest(method).setBody(body)
257 .setUrl(url)
EdbcDataSource.java (https://github.com/akdh/Ingres.git) Java · 738 lines
286 public void
287 setPassword( String password )
288 { this.password = password; }
399 public Connection
400 getConnection( String user, String password )
401 throws SQLException
402 {
688 if ( password != null )
689 ref.add( new StringRefAddr( "password", password ) );
691 if ( roleName != null )
700 if ( dbmsPassword != null )
701 ref.add( new StringRefAddr( "dbmsPassword", dbmsPassword ) );
703 if ( connectionPool != null )
AuthenticationUtils.java (https://github.com/alfresco-mirror/alfresco-mirror.git) Java · 211 lines
49 " <parameter name='passwordCallbackClass' value='org.alfresco.webservice.util.AuthenticationUtils'/>" +
50 " <parameter name='passwordType' value='PasswordText'/>" +
51 " </handler>" +
52 " <handler name='cookieHandler' type='java:org.alfresco.webservice.util.CookieHandler' />" +
65 * @throws AuthenticationFault
66 */
67 public static void startSession(String username, String password)
68 throws AuthenticationFault
69 {
99 * @throws AuthenticationFault
100 */
101 public static void startSession(String username, String password, long timeoutInterval)
102 throws AuthenticationFault
103 {
185 if (callbacks[i] instanceof WSPasswordCallback)
186 {
187 WSPasswordCallback pc = (WSPasswordCallback)callbacks[i];
188 String ticket = AuthenticationUtils.getTicket();
RegisterDeviceResponse.java (https://github.com/aliyun/aliyun-openapi-java-sdk.git) Java · 368 lines
29 private Boolean success;
31 private String requestId;
33 private String message;
175 private String cleanSession;
177 private String password;
179 private String port;
217 }
219 public String getPassword() {
220 return this.password;
221 }
223 public void setPassword(String password) {
224 this.password = password;
SOAP.php (https://github.com/usagi-project/mynets1.git) PHP · 228 lines
64 * 'encoding' => 'UTF-8',
65 * 'usernamefield' => 'login',
66 * 'passwordfield' => 'password',
67 * 'matchpasswords' => false,
167 * @param string Username
168 * @param string Password
169 * @return mixed Returns the SOAP response or false if something went wrong
170 */
193 $usernameField = new SOAP_Value($this->_options['usernamefield'],'string', $username);
194 $passwordField = new SOAP_Value($this->_options['passwordfield'],'string', $password);
195 $SOAPParams = array($usernameField, $passwordField);
211 // check if passwords match
212 if ($password == $this->soapResponse->{$this->_options['passwordfield']}) {
213 return true;
214 } else {
CosFileTransfer.idl (https://github.com/remotesyssupport/omnibus.git) IDL · 157 lines
8 module CosFileTransfer {
10 typedef string Istring;
11 typedef Istring ProtocolAddress;
20 const ContentType INTAP_1 = 7;
22 exception CommandNotImplementedException { Istring reason; };
23 exception SessionException { Istring reason; };
24 exception TransferException { Istring reason; };
25 exception FileNotFoundException { Istring reason; };
149 readonly attribute ContentList supported_content_types;
151 FileTransferSession login(in Istring username, in Istring password,
152 in Istring account, out Directory root)
Selenium.java (https://github.com/amagavi/wonder.git) Java · 132 lines
30 public static final String USERNAME = "sel_name";
31 public static final String PASSWORD = "sel_pass";
32 private static final String NAME = "SeleniumName";
34 private void deleteTestPeople() {
35 People people = People.clazz.userWithUsernamePassword(session().defaultEditingContext(), USERNAME, PASSWORD);
36 if (people != null) {
37 EOEditingContext ec = ERXEC.newEditingContext();
62 people.setName(NAME);
63 people.setLogin(USERNAME);
64 people.setPassword(PASSWORD);
65 people.setIsAdmin(isAdmin);
66 ec.saveChanges();
72 Session session = (Session)session();
73 session.setLanguage("English");
74 People people = People.clazz.userWithUsernamePassword(session.defaultEditingContext(), USERNAME, PASSWORD);
75 session.setUser(people);
76 return success();
IndividualRepository.cs (https://github.com/isel-31401/ISEL-LEIC-PI-31401.git) C# · 235 lines
28 public Boolean ChangePassWord(String user, String oldPassword, String newPassword)
29 {
30 if (_userRepo[user].Password != oldPassword) return false;
138 }
139 public MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status)
140 {
141 if (_userRepo.ContainsKey(username))
170 }
172 public Boolean ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer)
173 {
174 if (!_userRepo.ContainsKey(username) || _userRepo[username].Password != password) return false;
Reference.cs (https://bitbucket.org/jrobertshawe/off-campus-server.git) C# · 238 lines
43 private string usernameField;
45 private string passwordField;
47 /// <remarks/>
59 /// <remarks/>
60 [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, DataType="token", Order=1)]
61 public string password {
62 get {
63 return this.passwordField;
214 }
216 public string getBeach(SLSTOffCampusWeb.ABSAMP.ctAuthentication ctAuthentication, string beachKey, string beachName) {
217 SLSTOffCampusWeb.ABSAMP.getBeachRequest inValue = new SLSTOffCampusWeb.ABSAMP.getBeachRequest();
218 inValue.ctAuthentication = ctAuthentication;
AuthenticationDetails.java (https://gitlab.com/github-cloud-corp/aws-sdk-android) Java · 185 lines
32 */
33 public class AuthenticationDetails {
34 public final static String PASSWORD_AUTHENTICATION = "PASSWORD_VERIFIER";
35 public final static String CUSTOM_AUTHENTICATION = "CUSTOM_CHALLENGE";
37 private String userId;
38 private String password;
39 private List<AttributeType> validationData;
40 private Map<String, String> authenticationParameters;
47 * @param validationData REQUIRED: Validation data parameters for the pre-auth lambda.
48 */
49 public AuthenticationDetails(String userId, String password, Map<String, String> validationData){
50 this.authenticationType = PASSWORD_AUTHENTICATION;
60 * @param authenticationParameters REQUIRED: Authentication details to launch custom authentication process.
61 */
62 public AuthenticationDetails(String userId, Map<String, String> authenticationParameters, Map<String, String> validationData) {
63 this.userId = userId;
64 if (authenticationParameters != null) {
CustomTestLoginModule.java (https://github.com/jocstar/jboss-as.git) Java · 137 lines
64 String[] s = getUsernameAndPassword();
65 username = s[0];
66 String password = s[1];
67 if (username.equals("anil")) {
68 if (password.equals("anil"))
110 NameCallback nc = new NameCallback("User name: ", "guest");
111 PasswordCallback pc = new PasswordCallback("Password: ", false);
112 Callback[] callbacks = { nc, pc };
113 String username = null;
114 String password = null;
115 try {
116 callbackHandler.handle(callbacks);
120 pc.clearPassword();
121 password = new String(tmpPassword);
122 }
123 } catch (IOException e) {
Regression657.java (git://pkgs.fedoraproject.org/resteasy) Java · 366 lines
275 @Override
276 public Boolean update(@PathParam("id") String id, @QueryParam("adaId") String adaId, @QueryParam("name") String name, @QueryParam("surname") String surname, @QueryParam("address") String address, @QueryParam("city") String city, @QueryParam("country") String country, @QueryParam("zipcode") String zipcode, @QueryParam("email") String email, @QueryParam("phone") String phone, @QueryParam("phone") String timezone)
277 {
278 return null;
281 @Override
282 public Boolean updatePassword(@PathParam("username") String username, List<String> passwords)
283 {
284 return null;
287 @Override
288 public Boolean create(@QueryParam("email") String email, @QueryParam("password") String password, @QueryParam("username") String username)
289 {
290 return null;
Party.java (https://gitlab.com/Slind/mcMMO) Java · 343 lines
25 private String name;
26 private String password;
27 private boolean locked;
28 private Party ally;
50 }
52 public Party(String leader, String name, String password) {
53 this.leader = leader;
54 this.name = name;
58 }
60 public Party(String leader, String name, String password, boolean locked) {
61 this.leader = leader;
62 this.name = name;
124 }
126 public void setPassword(String password) {
127 this.password = password;
DDMRESTDataProviderSettings.java (https://github.com/danielreuther/liferay-portal.git) Java · 158 lines
57 size = 12,
58 value = {
59 "url", "username", "password", "filterable",
60 "filterParameterName", "cacheable",
61 "pagination", "paginationStartParameterName",
92 }
93 )
94 public String filterParameterName();
96 @DDMFormField(
126 type = "password"
127 )
128 public String password();
130 @DDMFormField(
ConexionBD.java (https://bitbucket.org/qckzr/teg-hs.git) Java · 195 lines
17 private String usuario;
18 private String password;
19 private String puerto;
33 public ConexionBD(String usuario, String password, String puerto,
34 String ipBd) {
35 this.usuario = usuario;
36 this.password = password;
37 this.puerto = puerto;
38 this.ipBd = ipBd;
47 }
49 public void setPassword(String password) {
50 this.password = password;
SignUpRequest.cs (https://gitlab.com/vectorci/aws-sdk-net) C# · 154 lines
30 /// <summary>
31 /// Container for the parameters to the SignUp operation.
32 /// Registers the user in the specified user pool and creates a user name, password, and
33 /// user attributes.
34 /// </summary>
37 private string _clientId;
38 private string _password;
39 private string _secretHash;
40 private List<AttributeType> _userAttributes = new List<AttributeType>();
41 private string _username;
42 private List<AttributeType> _validationData = new List<AttributeType>();
66 /// </para>
67 /// </summary>
68 public string Password
69 {
70 get { return this._password; }
SignatureSOAPHeaderAuthStrategyTest.java (https://gitlab.com/CORP-RESELLER/sdk-core-java) Java · 104 lines
52 String username= user.item(0).getTextContent();
53 String password = psw.item(0).getTextContent();
54 String signature = sign.item(0).getTextContent();
77 String username= user.item(0).getTextContent();
78 String password = psw.item(0).getTextContent();
79 String signature = sign.item(0).getTextContent();
82 Assert.assertEquals("testusername", username);
83 Assert.assertEquals("testpassword", password);
84 Assert.assertEquals("testsignature", signature);
85 Assert.assertNull(sub);
94 }
96 private Document loadXMLFromString(String xml) throws Exception
97 {
98 ByteArrayInputStream stream = new ByteArrayInputStream(xml.getBytes());
RmqConnector.java (https://github.com/Ricston/mule-transport-rmq.git) Java · 279 lines
34 public static final String DEFAULT_USERNAME = "guest";
35 public static final String DEFAULT_PASSWORD = "guest";
36 public static final String DEFAULT_VIRTUALHOST = "/";
59 private String username = DEFAULT_USERNAME;
60 private String password = DEFAULT_PASSWORD;
62 private int channelNumber = -1;
88 factory.setPort(port);
89 if (vhost != null) factory.setVirtualHost(vhost);
90 if (password != null) factory.setPassword(password);
91 if (username != null) factory.setUsername(username);
92 return factory;
232 }
234 public void setPassword(String password)
235 {
236 this.password = password;
LockAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 160 lines
✨ Summary
This Java class, LockAction
, extends SVNAction
and is responsible for performing an SVN lock action. It creates a dialog to input paths and credentials, then uses a SwingWorker to execute the lock operation in the background. The result is displayed in a panel with the locked files.
This Java class, LockAction
, extends SVNAction
and is responsible for performing an SVN lock action. It creates a dialog to input paths and credentials, then uses a SwingWorker to execute the lock operation in the background. The result is displayed in a panel with the locked files.
65 * @param paths a list of paths to be added
66 * @param username the username for the svn repository
67 * @param password the password for the username
68 * @param remote true if attempting to lock a remote repository file
69 */
70 public LockAction( View view, List<String> paths, String username, String password, boolean remote ) {
71 super( view, jEdit.getProperty( "ips.Lock", "Lock" ) );
72 if ( paths == null )
74 this.paths = paths;
75 setUsername( username );
76 setPassword( password );
77 this.remote = remote;
78 }
DBConfiguration.java (https://github.com/spinisetti/sqoop.git) Java · 312 lines
38 * values.
39 *
40 * @see DBConfiguration#configureDB(Configuration, String, String, String,
41 * String)
42 * @see DBInputFormat#setInput(Job, Class, String, String)
43 * @see DBInputFormat#setInput(Job, Class, String, String, String, String...)
44 * @see DBOutputFormat#setOutput(Job, String, String...)
58 /** Password to access the database. */
59 public static final String PASSWORD_PROPERTY = "mapreduce.jdbc.password";
61 /** Fetch size. */
116 public static void configureDB(Configuration conf, String driverClass,
117 String dbUrl, String userName, String passwd, Integer fetchSize) {
119 conf.set(DRIVER_CLASS_PROPERTY, driverClass);
JBossASDiscoveryUtils.java (https://github.com/ccrouch/rhq.git) Java · 117 lines
66 String adminUser = adminUsers.iterator().next();
67 String adminPassword = securityDomainInfo.getPassword(adminUser);
68 LOG.debug("Discovered principal (" + adminUser
69 + ") and credentials for connecting to the JMX invoker service.");
72 }
73 catch (Exception e) {
74 LOG.error("Could not determine username and password of admin user - failed to parse users and/or roles configuration file.");
75 }
76 }
99 private final String password;
101 public UserInfo(String username, String password) {
102 this.username = username;
103 this.password = password;
108 }
110 public String getPassword() {
111 return password;
LdapUserDataWidget.java (https://github.com/bluesoft-rnd/aperte-workflow-core.git) Java · 185 lines
43 descriptionKey = "userdata.widget.ldap.password.description"
44 )
45 public String password;
47 @AutoWiredProperty
99 UserData ud = new UserData();
100 if (attrs.getAttribute(loginAttr) == null) continue;
101 String login = attrs.getAttribute(loginAttr).getStringValue();
102 ud.setLogin(ldapEntry.getDN() + ", " + loginAttr + "=" + login);
103 if (attrs.getAttribute(descriptionAttr) == null) {
144 }
146 public String getPassword() {
147 return password;
148 }
150 public void setPassword(String password) {
151 this.password = password;
ServerConfiguration.java (https://github.com/leobin/Localization.git) Java · 148 lines
29 private static final String TAG_MYSQL_USERNAME = "username";
30 private static final String TAG_MYSQL_PASSWORD = "password";
31 private static final String TAG_MYSQL_DRIVER = "driver";
34 private static ServerConfiguration singleton;
35 public String url;
36 public String username;
37 public String password;
38 public String driver;
51 node = doc.getElementsByTagName(TAG_MYSQL_USERNAME).item(0).getChildNodes().item(0);
52 this.username = node.getNodeValue().trim();
53 node = doc.getElementsByTagName(TAG_MYSQL_PASSWORD).item(0).getChildNodes().item(0);
54 this.password = node.getNodeValue().trim();
115 Element mysqlUsernameEle = dom.createElement(TAG_MYSQL_USERNAME);
116 mysqlUsernameEle.setTextContent(url);
117 Element mysqlPasswordEle = dom.createElement(TAG_MYSQL_PASSWORD);
118 mysqlPasswordEle.setTextContent(url);
GoogleMailUsersHook.java (https://github.com/kiyoshilee/liferay-plugins.git) Java · 171 lines
48 @Override
49 public void addUser(
50 long companyId, long userId, String password, String firstName,
51 String middleName, String lastName, String emailAddress) {
81 public void deleteEmailAddress(long companyId, long userId) {
82 try {
83 String primaryEmailAddress = _getPrimaryEmailAddress(
84 companyId, userId);
109 @Override
110 public void updateBlocked(
111 long companyId, long userId, List<String> blocked) {
112 }
136 @Override
137 public void updatePassword(long companyId, long userId, String password) {
138 try {
139 String primaryEmailAddress = _getPrimaryEmailAddress(
ConnectionModel.java (https://gitlab.com/jettijam/pubsub_project) Java · 343 lines
17 private static final String USERNAME = "USERNAME";
18 private static final String PASSWORD = "PASSWORD";
19 private static final String TLS_SERVER_KEY = "TLS_SERVER_KEY";
36 private String username = new String();
37 private String password = new String();
189 }
191 public void setPassword(String password) {
192 this.password = password;
309 if (username != null ? !username.equals(that.username) : that.username != null)
310 return false;
311 if (password != null ? !password.equals(that.password) : that.password != null)
312 return false;
313 if (tlsServerKey != null ? !tlsServerKey.equals(that.tlsServerKey) : that.tlsServerKey != null)
ServiceCallOptions.cs (https://gitlab.com/pgksunilkumar/Serenity) C# · 197 lines
78 /// A map of dataType-to-dataType converters. Each converter's value is a function that returns the transformed value of the response.
79 /// </summary>
80 public JsDictionary<string, Func<string, object>> Converters { get; set; }
82 /// <summary>
130 /// Gets or sets the mime type of the request.
131 /// </summary>
132 public string MimeType { get; set; }
134 /// <summary>
135 /// Gets or sets the password to be used for an HTTP authentication request.
136 /// </summary>
137 public string Password { get; set; }
139 /// <summary>
ConfigurablePasswordProvider.java (https://github.com/jianguo11/openmicroscopy.git) Java · 133 lines
43 /**
44 * If true, this implementation should return a null on
45 * {@link #checkPassword(String, String)} if the user is unknown, otherwise
46 * a {@link Boolean#FALSE}. Default value: false
47 */
88 * authentication should fail.
89 */
90 public Boolean checkPassword(String user, String password, boolean readOnly) {
91 if (ignoreUnknown) {
92 return null;
99 * Throws by default.
100 */
101 public void changePassword(String user, String password)
102 throws PasswordChangeException {
110 * {@link #comparePasswords(String, String)}
111 */
112 public String encodePassword(String newPassword) {
113 return util.preparePassword(newPassword);
SetupInfo.cs (https://github.com/fitzchak/ravendb.git) C# · 346 lines
21 public string Certificate { get; set; }
22 public string Password { get; set; }
24 public Dictionary<string, NodeInfo> NodeSetupInfos { get; set; }
35 [nameof(RegisterClientCert)] = RegisterClientCert,
36 [nameof(Certificate)] = Certificate,
37 [nameof(Password)] = Password,
38 [nameof(NodeSetupInfos)] = DynamicJsonValue.Convert(NodeSetupInfos)
39 };
240 public string[] RootDomains { get; set; }
241 public Dictionary<string, List<string>> Domains { get; set; }
243 public DynamicJsonValue ToJson()
334 }
336 private void AddMessage(string type, string message, Exception ex = null) //<-- remember last message here
337 {
338 Message = $"[{SystemTime.UtcNow:T} {type}] {message}";
Configuration.cs (https://github.com/cparedes/omnibus.git) C# · 1107 lines
277 EncryptionAlgorithm alg;
278 XmlNode xmlNode;
279 string tmp, password;
281 xmlNode = XMLReader.GetNode(xmlElem, name);
436 public static bool ConfigStringList(XmlElement xmlElem,
437 string name, ref List<string> strings, bool compulsory)
438 {
439 XmlNode xmlNode;
847 else if (xmlNode != null)
848 {
849 string password = XMLReader.GetNode(
850 (XmlElement)xmlNode, "password").InnerText;
994 public static void ConfirmStringList(XmlElement xmlElem,
995 string name, List<string> strings, bool compulsory)
996 {
997 XmlNode xmlNode;
GitRepositoryValidationTest.java (https://bitbucket.org/andsliz/bamboo-git-plugin.git) Java · 236 lines
86 { "http://username:password@host/repo", "username", "password", NONE, null}, // duplicate username and password but ignored - no reason to complain
87 { "http://username:password@host/repo", "username", "password", PASSWORD, newArrayList("repository.git.repositoryUrl", "repository.git.username", "temporary.git.password.change")}, //duplicate username and password
88 { "http://username:password@host/repo", "username", "password", SSH_KEYPAIR, newArrayList("repository.git.authenticationType")}, // invalid - you can't use http with keyfile
121 { "https://username:password@host/repo", null, "password", NONE, null}, // duplicate password but ignored - no reason to complain
122 { "https://username:password@host/repo", null, "password", PASSWORD, newArrayList("repository.git.repositoryUrl", "temporary.git.password.change")}, //duplicate password
123 { "https://username:password@host/repo", null, "password", SSH_KEYPAIR, newArrayList("repository.git.authenticationType")}, // invalid - you can't use http with keyfile
158 { "ssh://username:password@host/repo", null, "password", NONE, null}, // duplicate password but ignored - no reason to complain
159 { "ssh://username:password@host/repo", null, "password", PASSWORD, newArrayList("repository.git.repositoryUrl", "temporary.git.password.change")}, //duplicate password
160 { "ssh://username:password@host/repo", null, "password", SSH_KEYPAIR, null}, // duplicate password but ignored - no reason to complain
161 { "ssh://username:password@host/repo", "username", "password", NONE, null}, // duplicate username and password but ignored - no reason to complain
162 { "ssh://username:password@host/repo", "username", "password", PASSWORD, newArrayList("repository.git.repositoryUrl", "repository.git.username", "temporary.git.password.change")}, //duplicate username and password
163 { "ssh://username:password@host/repo", "username", "password", SSH_KEYPAIR, null}, // duplicate username and password but ignored - no reason to complain
184 @Test(dataProvider = "urlUsernamePasswordCombinations")
185 public void testUrlUsernamePasswordCombinations(String url, String username, String password, GitAuthenticationType authenticationType, List<String> expectedErrorFields) throws Exception
186 {
187 ErrorCollection errorCollection = doValidateConfiguration(url, username, password, authenticationType);
HypervisorHB.java (https://github.com/yangbenf/abiquo.git) Java · 181 lines
IndexResource.java (https://github.com/vilmospapp/liferay-portal.git) Java · 372 lines
57 public static class Builder {
59 public Builder authentication(String login, String password) {
60 _login = login;
61 _password = password;
76 }
78 public Builder header(String key, String value) {
79 _headers.put(key, value);
255 }
257 for (Map.Entry<String, String> entry :
258 _builder._headers.entrySet()) {
protocol.cs (https://github.com/vitalyster/networkplugin-csharp.git) C# · 871 lines
80 set { _legacyName = value; }
81 }
82 private string _password;
83 [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"password", DataFormat = global::ProtoBuf.DataFormat.Default)]
84 public string password
85 {
86 get { return _password; }
87 set { _password = value; }
88 }
89 private readonly global::System.Collections.Generic.List<string> _extraFields = new global::System.Collections.Generic.List<string>();
90 [global::ProtoBuf.ProtoMember(4, Name=@"extraFields", DataFormat = global::ProtoBuf.DataFormat.Default)]
91 public global::System.Collections.Generic.List<string> extraFields
314 [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"password", DataFormat = global::ProtoBuf.DataFormat.Default)]
315 [global::System.ComponentModel.DefaultValue("")]
316 public string password
317 {
318 get { return _password; }
AmazonS3Config.cs (https://bitbucket.org/mdavid/awssdkfornet-extended.git) C# · 355 lines
39 private string proxyUsername;
40 private string proxyPassword;
41 private int maxErrorRetry = 3;
42 private Protocol protocol = Protocol.HTTPS;
205 /// used if ProxyUsername is null or empty.
206 /// </remarks>
207 public string ProxyPassword
208 {
209 get { return this.proxyPassword; }
224 /// <param name="password">ProxyPassword property</param>
225 /// <returns>this instance</returns>
226 public AmazonS3Config WithProxyPassword(string password)
227 {
228 this.proxyPassword = password;
236 internal bool IsSetProxyPassword()
237 {
238 return !System.String.IsNullOrEmpty(this.proxyPassword);
239 }
basic_context.hpp (https://bitbucket.org/mihail_rylov/ayuine2c-winrt.git) C++ Header · 436 lines
382 * @param callback The function object to be used for obtaining the password.
383 * The function signature of the handler must be:
384 * @code std::string password_callback(
385 * std::size_t max_length, // The maximum size for a password.
405 * @param callback The function object to be used for obtaining the password.
406 * The function signature of the handler must be:
407 * @code std::string password_callback(
408 * std::size_t max_length, // The maximum size for a password.
409 * password_purpose purpose // Whether password is for reading or writing.
410 * ); @endcode
411 * The return value of the callback is a string containing the password.
412 *
413 * @param ec Set to indicate what error occurred, if any.
415 template <typename PasswordCallback>
416 boost::system::error_code set_password_callback(PasswordCallback callback,
417 boost::system::error_code& ec)
418 {
context.hpp (https://bitbucket.org/mobilecloudlab/mobilehostdist.git) C++ Header · 533 lines
460 * @param callback The function object to be used for obtaining the password.
461 * The function signature of the handler must be:
462 * @code std::string password_callback(
463 * std::size_t max_length, // The maximum size for a password.
480 * @param callback The function object to be used for obtaining the password.
481 * The function signature of the handler must be:
482 * @code std::string password_callback(
483 * std::size_t max_length, // The maximum size for a password.
484 * password_purpose purpose // Whether password is for reading or writing.
485 * ); @endcode
486 * The return value of the callback is a string containing the password.
487 *
488 * @param ec Set to indicate what error occurred, if any.
492 template <typename PasswordCallback>
493 boost::system::error_code set_password_callback(PasswordCallback callback,
494 boost::system::error_code& ec);
JmxConnector.java (https://bitbucket.org/ssteinmetz/openesb-components.git) Java · 713 lines
74 * @param password -
75 */
76 public JmxConnector(String protocol, String hostname, String port, String username,
77 String password,int hostType) {
80 }
82 public JmxConnector(String protocol, String hostname, String port, String username, String password,
83 String jndiName, int hostType) {
211 ObjectName nameToAssign,
212 Object[] params,
213 String[] signatures
214 )
215 throws
247 ObjectName loaderName,
248 Object[] params,
249 String[] signatures
250 )
251 throws
Connector.java (https://bitbucket.org/ssteinmetz/openesb-components.git) Java · 733 lines
55 protected String username;
56 protected String password; // encrypted or clear-text ??
57 protected String jndiName;
68 * @param password -
69 */
70 public Connector(String _hostname, String _port, String _username, String _password, int hostType) {
72 this(null,_hostname,_port,_username,_password,null,hostType);
76 public Connector(String _hostname, String _port, String _username, String _password, String _jndiName,
77 int hostType) {
78 this(null,_hostname,_port,_username,_password,_jndiName,hostType);
79 }
81 public Connector(String _protocol, String _hostname, String _port, String _username, String _password,
82 String _jndiName,int _hostType) {
PopulateDAO.java (https://bitbucket.org/ssteinmetz/openesb-components.git) Java · 526 lines
17 private static final Logger logger = Logger.getLogger(PopulateDAO.class.getName());
19 private static final String INSERT_CSF_REP_USERS = "insert into CSF_REP_USERS " +
20 "(USER_LOGICAL_ID, USER_DESCRIPTION, USER_NAME, USER_PASSWORD, ACTIVE_FLAG, CREATE_ID, CREATE_DATE_TIME, LAST_MOD_ID, LAST_MOD_DATE_TIME) values " +
21 "(?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, ?, CURRENT_TIMESTAMP)";
23 private static final String INSERT_CSF_JMS_CHANNEL = "insert into CSF_JMS_CHANNEL " +
24 "(CHANNEL_CODE, HOST_IP, PORT, NAME, CHANNEL_TYPE, ACTIVE_FLAG, DESCRIPTION, CREATE_ID, CREATE_DATE_TIME, LAST_MOD_ID, LAST_MOD_DATE_TIME) values " +
25 "(?, ?, ?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, ?, CURRENT_TIMESTAMP)";
27 private static final String INSERT_CSF_ALERTER_GROUPS = "insert into CSF_ALERTER_GROUPS " +
28 "(ALERTER_GROUP, ALERTER_FROM, ALERTER_TO_PRIMARY, ALERTER_TO_SECONDARY, ACTIVE_FLAG, CREATE_ID, CREATE_DATE_TIME, LAST_MOD_ID, LAST_MOD_DATE_TIME) values " +
29 "(?, ?, ?, ?, ?, ?, CURRENT_TIMESTAMP, ?, CURRENT_TIMESTAMP)";
75 private String username;
76 private String password;
78 private Connection connection;
Connecting.java (https://gitlab.com/qoriah/programpenjualan) Java · 120 lines
30 String username = "root";
31 String password = "";
32 konek = DriverManager.getConnection("jdbc:mysql://" + host + ":" + port + "/" + db, username, password);
45 }
47 public boolean OpenCnt(String host, String port, String db, String username, String password) {
48 try {
49 Class.forName("com.mysql.jdbc.Driver");
80 }
82 public boolean execute(String SQL, JTable TabelContainerSwing, String[] ColumnName) {
84 dtm = new DefaultTableModel(null, ColumnName) {
97 return true;
98 } else {
99 String[] data = new String[ColumnName.length];
101 while (rst.next()) {
Agente.java (https://github.com/FAP-Team/Fap-Module.git) Java · 178 lines
31 public String username;
33 public String passwordAntiguo;
35 @CheckWith(validation.PasswordCheck.class)
36 public String password;
38 @CheckWith(validation.PasswordCheck.class)
131 @Override
132 public String toString() {
133 return "Agente [username=" + username + ", email=" + email + "]";
134 }
146 public List<String> getSortRoles() {
147 List<String> list = new ArrayList<String>(this.roles);
148 Collections.sort(list);
149 return list;
PostgresConnectionSettings.java (https://github.com/sleuthkit/autopsy.git) Java · 222 lines
41 }
43 private static void validateRegex(String s, String pattern, String errMessage) throws CentralRepoException {
44 if (!Pattern.matches(pattern, s))
45 throw new CentralRepoException(errMessage);
57 private String userName = DEFAULT_USERNAME;
58 private String password = DEFAULT_PASSWORD;
60 /**
170 * @param password The password to set.
171 */
172 public void setPassword(String password) throws CentralRepoException {
173 validateStr(password, "Invalid user password. Cannot be empty.");
215 return false;
216 }
217 if (!Objects.equals(this.password, other.password)) {
218 return false;
219 }
UserServiceWrapper.java (https://github.com/monicali/liferay-portal.git) Java · 1174 lines
162 */
163 public com.liferay.portal.model.User addUser(long companyId,
164 boolean autoPassword, java.lang.String password1,
165 java.lang.String password2, boolean autoScreenName,
330 */
331 public com.liferay.portal.model.User addUserWithWorkflow(long companyId,
332 boolean autoPassword, java.lang.String password1,
333 java.lang.String password2, boolean autoScreenName,
405 */
406 public com.liferay.portal.model.User addUserWithWorkflow(long companyId,
407 boolean autoPassword, java.lang.String password1,
408 java.lang.String password2, boolean autoScreenName,
957 public com.liferay.portal.model.User updatePassword(long userId,
958 java.lang.String password1, java.lang.String password2,
959 boolean passwordReset)
UserWrapper.java (https://github.com/monicali/liferay-portal.git) Java · 1213 lines
224 * @param password the password of this user
225 */
226 public void setPassword(java.lang.String password) {
227 _user.setPassword(password);
249 * Sets whether this user is password encrypted.
250 *
251 * @param passwordEncrypted the password encrypted of this user
252 */
253 public void setPasswordEncrypted(boolean passwordEncrypted) {
298 public void setPasswordModifiedDate(java.util.Date passwordModifiedDate) {
299 _user.setPasswordModifiedDate(passwordModifiedDate);
300 }
927 }
929 public java.lang.String getDigest(java.lang.String password) {
930 return _user.getDigest(password);
UserServiceWrapper.java (https://github.com/Oggi/liferay-portal.git) Java · 1186 lines
318 */
319 public com.liferay.portal.model.User addUserWithWorkflow(long companyId,
320 boolean autoPassword, java.lang.String password1,
321 java.lang.String password2, boolean autoScreenName,
395 */
396 public com.liferay.portal.model.User addUserWithWorkflow(long companyId,
397 boolean autoPassword, java.lang.String password1,
398 java.lang.String password2, boolean autoScreenName,
886 */
887 public com.liferay.portal.model.User updateEmailAddress(long userId,
888 java.lang.String password, java.lang.String emailAddress1,
889 java.lang.String emailAddress2)
964 public com.liferay.portal.model.User updatePassword(long userId,
965 java.lang.String password1, java.lang.String password2,
966 boolean passwordReset)
UserModel.java (https://github.com/Oggi/liferay-portal.git) Java · 713 lines
193 * @param password the password of this user
194 */
195 public void setPassword(String password);
197 /**
212 * Sets whether this user is password encrypted.
213 *
214 * @param passwordEncrypted the password encrypted of this user
215 */
216 public void setPasswordEncrypted(boolean passwordEncrypted);
249 * @param passwordModifiedDate the password modified date of this user
250 */
251 public void setPasswordModifiedDate(Date passwordModifiedDate);
253 /**
710 public String toString();
712 public String toXmlString();
713 }
UserServiceHttp.java (https://github.com/Oggi/liferay-portal.git) Java · 1518 lines
222 HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
223 java.lang.String password1, java.lang.String password2,
224 boolean autoScreenName, java.lang.String screenName,
281 HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
282 java.lang.String password1, java.lang.String password2,
283 boolean autoScreenName, java.lang.String screenName,
298 MethodHandler methodHandler = new MethodHandler(methodKey,
299 companyId, autoPassword, password1, password2,
300 autoScreenName, screenName, emailAddress, facebookId,
301 openId, locale, firstName, middleName, lastName, prefixId,
333 HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
334 java.lang.String password1, java.lang.String password2,
335 boolean autoScreenName, java.lang.String screenName,
392 HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
393 java.lang.String password1, java.lang.String password2,
394 boolean autoScreenName, java.lang.String screenName,
DefaultNexusDiscovery_DiscoverTest.java (https://github.com/galak/nexus.git) Java · 495 lines
157 String user = "user";
158 String password = "password";
160 testClientManager.testUrl = url;
371 String user = "user";
372 String password = "password";
374 testClientManager.testUrl = url;
415 String user = "user";
416 String password = "password";
418 testClientManager.testUrl = url;
455 String user = "user";
456 String password = "password";
458 testClientManager.testUrl = url;
LdapAuthConfiguration.java (https://github.com/galak/nexus.git) Java · 728 lines
98 /** The password attribute. */
99 private String passwordAttribute = DEFAULT_USER_PASSWORD_ATTRIBUTE;
101 // /** The password encoding. */
102 // private String passwordEncoding = DEFAULT_USER_PASSWORD_ENCODING;
104 /** The user real name attribute. */
297 * @param passwordAttribute the new password attribute
298 */
299 public void setPasswordAttribute( String passwordAttribute )
300 {
301 this.passwordAttribute = passwordAttribute;
496 // * @param passwordEncoding the passwordEncoding to set
497 // */
498 // public void setPasswordEncoding( String passwordEncoding )
499 // {
500 // this.passwordEncoding = passwordEncoding;
AccountWrapper.java (https://github.com/stevenjiancao/liferay-plugins.git) Java · 684 lines
386 * @return the password of this account
387 */
388 public java.lang.String getPassword() {
389 return _account.getPassword();
395 * @param password the password of this account
396 */
397 public void setPassword(java.lang.String password) {
398 _account.setPassword(password);
424 public void setSavePassword(boolean savePassword) {
425 _account.setSavePassword(savePassword);
426 }
669 }
671 public void setPasswordDecrypted(java.lang.String unencryptedPassword) {
672 _account.setPasswordDecrypted(unencryptedPassword);
PerforceLoginCommand.java (https://github.com/intelchen/maven-scm.git) Java · 105 lines
32 import org.apache.maven.scm.provider.perforce.command.PerforceCommand;
33 import org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository;
34 import org.codehaus.plexus.util.StringUtils;
35 import org.codehaus.plexus.util.cli.CommandLineException;
36 import org.codehaus.plexus.util.cli.CommandLineUtils;
55 try
56 {
57 String password = repo.getPassword();
58 if ( StringUtils.isEmpty( password ) )
66 else
67 {
68 CommandLineUtils.StringStreamConsumer err = new CommandLineUtils.StringStreamConsumer();
69 int exitCode = CommandLineUtils.executeCommandLine( cl, new ByteArrayInputStream( password.getBytes() ),
73 if ( !isSuccess )
74 {
75 String cmdLine = CommandLineUtils.toString( cl.getCommandline() );
77 StringBuilder msg = new StringBuilder( "Exit code: " + exitCode + " - " + err.getOutput() );
EventingSupport.java (https://github.com/yangbenf/abiquo.git) Java · 374 lines
308 public static void subscribePull(final String virtualSystemAddress,
309 final String virtualSystemID, final String virtualSystemMonitorAddress)
310 throws EventingException
311 {
334 final HypervisorType hypervisorType, final String virtualSystemMonitorAddress,
335 final String user, final String password) throws EventingException
336 {
337 try
353 * @param virtualSystemMonitorAddress the URI of the VSM service
354 * @param user the admin hypervisor user
355 * @param password the admin hypervisor password
356 * @param virtualSystemAddress the physical machine addres to monitor
357 * @throws EventingException
359 public static void unMonitorPhysicalMachine(final String virtualSystemAddress,
360 final String virtualSystemMonitorAddress, final String user, final String password)
361 throws EventingException
362 {
TwitterTestBase.java (https://bitbucket.org/YeahXD/hot6_memory.git) Java · 111 lines
27 public class TwitterTestBase extends TestCase {
28 public TwitterTestBase(String name) {
29 super(name);
30 }
43 public String screenName;
44 public String password;
45 public long id;
46 public String accessToken;
47 public String accessTokenSecret;
49 TestUserInfo(String screenName) {
50 this.screenName = p.getProperty(screenName + ".user");
51 this.password = p.getProperty(screenName + ".password");
52 this.id = Long.valueOf(p.getProperty(screenName + ".id"));
53 this.accessToken = p.getProperty(screenName + ".oauth.accessToken");
ConnectionInfo.cs (https://github.com/psrodriguez/CIAPI.CS.git) C# · 355 lines
19 [Obsolete("Use the Password property instead of the password member.")]
20 public string password = null;
21 [Obsolete("Use the PollingIdleMillis property instead of the pollingIdleMillis member.")]
22 public long pollingIdleMillis = 0x7530L;
111 return false;
112 }
113 if (!this.Equals(info.password, this.password))
114 {
115 return false;
159 }
161 public override string ToString()
162 {
163 return (this.pushServerUrl + " - " + this.constraints.ToString());
220 }
222 public string Password
223 {
224 get
HibernateSessionProviderImpl.java (https://github.com/toribaric/portfoliosupportsystem.git) Java · 96 lines
23 private SessionFactory sessionFactory;
25 public HibernateSessionProviderImpl(String driverClass, String connectionUrl, String username, String password) {
26 this(driverClass, connectionUrl, username, password, new Class<?>[]{PersistenceEntity.class});
27 }
29 public HibernateSessionProviderImpl(String driverClass, String connectionUrl, String username, String password, Class<?>... classBases) {
30 try {
31 AnnotationConfiguration config = new AnnotationConfiguration();
47 if (null != password) {
48 config.setProperty("hibernate.connection.password", password);
49 }
70 db.scanArchives(getEntityPackage(classBase));
72 Map<String, Set<String>> annotationIndex = db.getAnnotationIndex();
UserServiceWrapper.java (https://github.com/portalcollc/liferay-portal.git) Java · 1186 lines
318 */
319 public com.liferay.portal.model.User addUserWithWorkflow(long companyId,
320 boolean autoPassword, java.lang.String password1,
321 java.lang.String password2, boolean autoScreenName,
395 */
396 public com.liferay.portal.model.User addUserWithWorkflow(long companyId,
397 boolean autoPassword, java.lang.String password1,
398 java.lang.String password2, boolean autoScreenName,
886 */
887 public com.liferay.portal.model.User updateEmailAddress(long userId,
888 java.lang.String password, java.lang.String emailAddress1,
889 java.lang.String emailAddress2,
965 public com.liferay.portal.model.User updatePassword(long userId,
966 java.lang.String password1, java.lang.String password2,
967 boolean passwordReset)
PasswordCryptoService.java (https://github.com/sorzu/xwiki-platform.git) Java · 105 lines
41 * @throws GeneralSecurityException if something goes wrong.
42 */
43 String encryptText(final String plaintext, final String password)
44 throws GeneralSecurityException;
90 * @throws GeneralSecurityException on errors
91 */
92 String protectPassword(final String password) throws GeneralSecurityException;
94 /**
101 * @throws GeneralSecurityException on errors
102 */
103 boolean isPasswordCorrect(final String password, final String protectedPassword)
104 throws GeneralSecurityException;
105 }
UserServiceWrapper.java (https://github.com/danielreuther/liferay-portal.git) Java · 1328 lines
68 String externalReferenceCode, long creatorUserId, long companyId,
69 boolean autoPassword, String password1, String password2,
70 boolean autoScreenName, String screenName, String emailAddress,
174 @Override
175 public User addUser(
176 long companyId, boolean autoPassword, String password1,
177 String password2, boolean autoScreenName, String screenName,
401 long companyId, boolean autoPassword, String password1,
402 String password2, boolean autoScreenName, String screenName,
403 String emailAddress, long facebookId, String openId,
627 #addUserWithWorkflow(long, boolean, String, String, boolean,
628 String, String, Locale, String, String, String, long, long,
629 boolean, int, int, int, String, long[], long[], long[],
704 #addUserWithWorkflow(long, boolean, String, String, boolean,
705 String, String, Locale, String, String, String, long, long,
706 boolean, int, int, int, String, long[], long[], long[],
UserServiceUtil.java (https://github.com/danielreuther/liferay-portal.git) Java · 1331 lines
71 String externalReferenceCode, long creatorUserId, long companyId,
72 boolean autoPassword, String password1, String password2,
73 boolean autoScreenName, String screenName, String emailAddress,
395 long companyId, boolean autoPassword, String password1,
396 String password2, boolean autoScreenName, String screenName,
397 String emailAddress, long facebookId, String openId,
475 */
476 public static User addUserWithWorkflow(
477 long companyId, boolean autoPassword, String password1,
478 String password2, boolean autoScreenName, String screenName,
614 #addUserWithWorkflow(long, boolean, String, String, boolean,
615 String, String, Locale, String, String, String, long, long,
616 boolean, int, int, int, String, long[], long[], long[],
690 #addUserWithWorkflow(long, boolean, String, String, boolean,
691 String, String, Locale, String, String, String, long, long,
692 boolean, int, int, int, String, long[], long[], long[],
UserModel.java (https://github.com/danielreuther/liferay-portal.git) Java · 769 lines
248 * @param password the password of this user
249 */
250 public void setPassword(String password);
252 /**
290 * @param passwordReset the password reset of this user
291 */
292 public void setPasswordReset(boolean passwordReset);
294 /**
304 * @param passwordModifiedDate the password modified date of this user
305 */
306 public void setPasswordModifiedDate(Date passwordModifiedDate);
308 /**
UserServiceHttp.java (https://github.com/danielreuther/liferay-portal.git) Java · 1678 lines
128 long creatorUserId, long companyId, boolean autoPassword,
129 String password1, String password2, boolean autoScreenName,
130 String screenName, String emailAddress, java.util.Locale locale,
293 HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
294 String password1, String password2, boolean autoScreenName,
295 String screenName, String emailAddress, java.util.Locale locale,
606 HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
607 String password1, String password2, boolean autoScreenName,
608 String screenName, String emailAddress, java.util.Locale locale,
667 HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
668 String password1, String password2, boolean autoScreenName,
669 String screenName, String emailAddress, long facebookId,
720 HttpPrincipal httpPrincipal, long companyId, boolean autoPassword,
721 String password1, String password2, boolean autoScreenName,
722 String screenName, String emailAddress, long facebookId,
SXPElementResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 1011 lines
43 public Page<SXPElement> getSXPElementsPage(
44 String search, String filterString, Pagination pagination,
45 String sortString)
48 public HttpInvoker.HttpResponse getSXPElementsPageHttpResponse(
49 String search, String filterString, Pagination pagination,
50 String sortString)
111 public static class Builder {
113 public Builder authentication(String login, String password) {
114 _login = login;
115 _password = password;
235 public HttpInvoker.HttpResponse getSXPElementsPageHttpResponse(
236 String search, String filterString, Pagination pagination,
237 String sortString)
SXPBlueprintResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 1021 lines
43 public Page<SXPBlueprint> getSXPBlueprintsPage(
44 String search, String filterString, Pagination pagination,
45 String sortString)
48 public HttpInvoker.HttpResponse getSXPBlueprintsPageHttpResponse(
49 String search, String filterString, Pagination pagination,
50 String sortString)
116 public static class Builder {
118 public Builder authentication(String login, String password) {
119 _login = login;
120 _password = password;
241 public HttpInvoker.HttpResponse getSXPBlueprintsPageHttpResponse(
242 String search, String filterString, Pagination pagination,
243 String sortString)
TaskResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 850 lines
98 public static class Builder {
100 public Builder authentication(String login, String password) {
101 _login = login;
102 _password = password;
315 }
317 for (Map.Entry<String, String> entry :
318 _builder._parameters.entrySet()) {
641 }
643 for (Map.Entry<String, String> entry :
644 _builder._parameters.entrySet()) {
ProcessResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 800 lines
87 public static class Builder {
89 public Builder authentication(String login, String password) {
90 _login = login;
91 _password = password;
124 }
126 public Builder parameter(String key, String value) {
127 _parameters.put(key, value);
369 }
371 for (Map.Entry<String, String> entry :
372 _builder._headers.entrySet()) {
FormRecordResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 751 lines
92 public static class Builder {
94 public Builder authentication(String login, String password) {
95 _login = login;
96 _password = password;
129 }
131 public Builder parameter(String key, String value) {
132 _parameters.put(key, value);
144 String parameterName = String.valueOf(parameters[i]);
145 String parameterValue = String.valueOf(parameters[i + 1]);
147 _parameters.put(parameterName, parameterValue);
631 }
633 for (Map.Entry<String, String> entry :
634 _builder._parameters.entrySet()) {
StructuredContentResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 1699 lines
50 Long assetLibraryId, Boolean flatten, String search,
51 List<String> aggregations, String filterString,
52 Pagination pagination, String sortString)
130 Long contentStructureId, String search, List<String> aggregations,
131 String filterString, Pagination pagination, String sortString)
132 throws Exception;
391 public static class Builder {
393 public Builder authentication(String login, String password) {
394 _login = login;
395 _password = password;
520 Long assetLibraryId, Boolean flatten, String search,
521 List<String> aggregations, String filterString,
522 Pagination pagination, String sortString)
StructuredContentFolderResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 1700 lines
49 Long assetLibraryId, Boolean flatten, String search,
50 List<String> aggregations, String filterString,
51 Pagination pagination, String sortString)
56 Long assetLibraryId, Boolean flatten, String search,
57 List<String> aggregations, String filterString,
58 Pagination pagination, String sortString)
239 Long parentStructuredContentFolderId, String search,
240 List<String> aggregations, String filterString,
241 Pagination pagination, String sortString)
326 public static class Builder {
328 public Builder authentication(String login, String password) {
329 _login = login;
330 _password = password;
456 Long assetLibraryId, Boolean flatten, String search,
457 List<String> aggregations, String filterString,
458 Pagination pagination, String sortString)
SitePageResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 712 lines
45 Long siteId, String search, List<String> aggregations,
46 String filterString, Pagination pagination, String sortString)
47 throws Exception;
50 Long siteId, String search, List<String> aggregations,
51 String filterString, Pagination pagination, String sortString)
52 throws Exception;
95 public static class Builder {
97 public Builder authentication(String login, String password) {
98 _login = login;
99 _password = password;
174 Long siteId, String search, List<String> aggregations,
175 String filterString, Pagination pagination, String sortString)
176 throws Exception {
ContentSetElementResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 644 lines
91 public static class Builder {
93 public Builder authentication(String login, String password) {
94 _login = login;
95 _password = password;
325 }
327 for (Map.Entry<String, String> entry :
328 _builder._parameters.entrySet()) {
411 }
413 for (Map.Entry<String, String> entry :
414 _builder._headers.entrySet()) {
CommentResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 1684 lines
45 Long blogPostingId, String search, List<String> aggregations,
46 String filterString, Pagination pagination, String sortString)
47 throws Exception;
50 Long blogPostingId, String search, List<String> aggregations,
51 String filterString, Pagination pagination, String sortString)
52 throws Exception;
100 Long parentCommentId, String search, List<String> aggregations,
101 String filterString, Pagination pagination, String sortString)
102 throws Exception;
286 Long structuredContentId, String search, List<String> aggregations,
287 String filterString, Pagination pagination, String sortString)
288 throws Exception;
CartResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 1079 lines
112 public static class Builder {
114 public Builder authentication(String login, String password) {
115 _login = login;
116 _password = password;
176 private String _contextPath = "";
177 private Map<String, String> _headers = new LinkedHashMap<>();
178 private String _host = "localhost";
702 }
704 for (Map.Entry<String, String> entry :
705 _builder._parameters.entrySet()) {
866 }
868 for (Map.Entry<String, String> entry :
869 _builder._parameters.entrySet()) {
ShipmentItemResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 1144 lines
131 public static class Builder {
133 public Builder authentication(String login, String password) {
134 _login = login;
135 _password = password;
199 private String _login = "";
200 private String _password = "";
201 private Map<String, String> _parameters = new LinkedHashMap<>();
514 }
516 for (Map.Entry<String, String> entry :
517 _builder._headers.entrySet()) {
844 }
846 for (Map.Entry<String, String> entry :
847 _builder._parameters.entrySet()) {
WarehouseResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 813 lines
100 public static class Builder {
102 public Builder authentication(String login, String password) {
103 _login = login;
104 _password = password;
627 public Page<Warehouse> getWarehousesPage(
628 String filterString, Pagination pagination, String sortString)
629 throws Exception {
672 public HttpInvoker.HttpResponse getWarehousesPageHttpResponse(
673 String filterString, Pagination pagination, String sortString)
674 throws Exception {
AccountAddressResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 1381 lines
157 public static class Builder {
159 public Builder authentication(String login, String password) {
160 _login = login;
161 _password = password;
182 }
184 public Builder header(String key, String value) {
185 _headers.put(key, value);
209 String parameterName = String.valueOf(parameters[i]);
210 String parameterValue = String.valueOf(parameters[i + 1]);
212 _parameters.put(parameterName, parameterValue);
586 }
588 for (Map.Entry<String, String> entry :
589 _builder._parameters.entrySet()) {
PlanResource.java (https://github.com/danielreuther/liferay-portal.git) Java · 630 lines
76 public static class Builder {
78 public Builder authentication(String login, String password) {
79 _login = login;
80 _password = password;
128 String parameterName = String.valueOf(parameters[i]);
129 String parameterValue = String.valueOf(parameters[i + 1]);
131 _parameters.put(parameterName, parameterValue);
140 private String _contextPath = "";
141 private Map<String, String> _headers = new LinkedHashMap<>();
142 private String _host = "localhost";
590 }
592 for (Map.Entry<String, String> entry :
593 _builder._headers.entrySet()) {
AccountWrapper.java (https://github.com/danielreuther/liferay-portal.git) Java · 869 lines
111 }
113 String address = (String)attributes.get("address");
115 if (address != null) {
171 }
173 String password = (String)attributes.get("password");
175 if (password != null) {
743 */
744 @Override
745 public void setPassword(String password) {
746 model.setPassword(password);
749 @Override
750 public void setPasswordDecrypted(String unencryptedPassword) {
751 model.setPasswordDecrypted(unencryptedPassword);
Redis.java (https://github.com/jonhelgi/play-redis.git) Java · 1216 lines
25 }
27 public static java.lang.String auth(java.lang.String password) {
28 if (!RedisConnectionManager.isSharded()) {
29 Jedis jedis = RedisConnectionManager.getRawConnectionInternal();
603 }
605 public static java.lang.String lset(java.lang.String key,long index,java.lang.String value) {
606 Jedis jedis = RedisConnectionManager.getRawConnectionFromShard(key);
607 return jedis.lset(key,index,value);
992 }
994 public static java.lang.String set(java.lang.String key,java.lang.String value) {
995 Jedis jedis = RedisConnectionManager.getRawConnectionFromShard(key);
996 return jedis.set(key,value);
FtpClient.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1018 lines
✨ Summary
This Java code implements a basic FTP client framework, providing methods for sending and receiving data over an FTP connection. It handles various commands such as login, status, help, and file transfers, and includes features like response logging and buffering. The code is designed to be extensible and adaptable to different network configurations and proxy settings.
This Java code implements a basic FTP client framework, providing methods for sending and receiving data over an FTP connection. It handles various commands such as login, status, help, and file transfers, and includes features like response logging and buffering. The code is designed to be extensible and adaptable to different network configurations and proxy settings.
64 public void sendCommand(String command) throws IOException {
65 String debugString = command;
66 if (command.startsWith("PASS"))
67 debugString = "PASS <password removed for security>";
136 * PASSWORD (PASS) <BR>
137 * The argument field is a Telnet string specifying the user's password.
138 * This command must be immediately preceded by the user name command, and,
139 * for some sites, completes the user's identification for access control.
144 * <I>Per RFC959</I>
145 */
146 public void password(String password) throws IOException {
147 sendCommand("PASS " + password);
297 int bound_l = message.lastIndexOf('(', bound_r - 1) + 1;
299 String remoteAddr = message.substring(bound_l, bound_r);
300 int comma1 = remoteAddr.lastIndexOf(',');
301 int port = Integer.parseInt(remoteAddr.substring(comma1 + 1));
BrowseRepositoryPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 972 lines
✨ Summary
This Java code creates a custom tree view component for displaying directories and their contents. It allows users to interact with the directory structure, including deleting files, locking/unlocking directories, and exporting data. The component also displays additional information such as external repository locations and properties. It uses a custom cell renderer to format the display of directory names and contents.
This Java code creates a custom tree view component for displaying directories and their contents. It allows users to interact with the directory structure, including deleting files, locking/unlocking directories, and exporting data. The component also displays additional information such as external repository locations and properties. It uses a custom cell renderer to format the display of directory names and contents.
72 private String username = null;
73 private String password = null;
75 private JButton new_btn;
364 StringBuilder sb = new StringBuilder();
365 for ( Object part : tp.getPath() ) {
366 String p = part.toString();
367 if ( p.endsWith( "/" ) ) {
368 p = p.substring( 0, p.length() - 1 );
619 StringBuilder from = new StringBuilder();
620 String preface = parts[ 0 ].toString();
621 if ( preface.endsWith( "/" ) ) {
622 preface = preface.substring( 0, preface.length() - 1 );
663 if ( path != null ) {
664 Object[] parts = path.getPath();
665 StringBuilder from = new StringBuilder();
666 StringBuilder to = new StringBuilder();
RepositoryData.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 80 lines
✨ Summary
This Java class represents a repository’s data, including its name, URL, username, and password. It provides methods to create instances with default values, copy existing instances, and access the repository’s details through getter and setter methods. The class extends another CheckoutData
class, suggesting it might be part of a larger system for managing version control systems like SVN.
This Java class represents a repository’s data, including its name, URL, username, and password. It provides methods to create instances with default values, copy existing instances, and access the repository’s details through getter and setter methods. The class extends another CheckoutData
class, suggesting it might be part of a larger system for managing version control systems like SVN.
38 public RepositoryData() {}
40 public RepositoryData( String name, String url,
41 String username,
42 String password ) {
43 super();
44 this.name = name;
55 setUsername(data.getUsername() == null ? null : new String(data.getUsername()));
56 setPassword(data.getPassword() == null ? null : new String(data.getPassword()));
57 }
58 }
60 public String toString() {
61 return "RepositoryData[name=" + getName() + ", url=" + getURL() + ", username=" + getUsername() + ", password=" + getPassword() + "]";
62 }
RevertAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 191 lines
✨ Summary
This Java class implements an ActionListener for a “Revert” action in a Subversion (SVN) plugin. It allows users to select paths and revert changes made to those files, with optional recursive and confirmation prompts. The action uses a SwingWorker to perform the revert operation in the background, displaying output in a console panel and updating the project viewer with the results.
This Java class implements an ActionListener for a “Revert” action in a Subversion (SVN) plugin. It allows users to select paths and revert changes made to those files, with optional recursive and confirmation prompts. The action uses a SwingWorker to perform the revert operation in the background, displaying output in a console panel and updating the project viewer with the results.
63 * @param password the password for the username
64 */
65 public RevertAction( View view, List<String> paths, String username, String password ) {
66 super( view, jEdit.getProperty( "ips.Revert", "Revert" ) );
67 if ( paths == null )
69 this.paths = paths;
70 setUsername( username );
71 setPassword( password );
72 }
113 }
114 data.setUsername( getUsername() );
115 data.setPassword( getPassword() );
116 }
117 else {
FtpClient.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1046 lines
✨ Summary
This Java code implements a basic FTP client and server framework. It provides methods for sending and receiving FTP commands, handling responses, and managing socket connections. The code includes classes for reading and writing data, as well as logging and debugging functionality. It appears to be a foundation for building a full-featured FTP application or library.
This Java code implements a basic FTP client and server framework. It provides methods for sending and receiving FTP commands, handling responses, and managing socket connections. The code includes classes for reading and writing data, as well as logging and debugging functionality. It appears to be a foundation for building a full-featured FTP application or library.
58 public void sendCommand(String command) throws IOException {
59 String debugString = command;
60 if(command.startsWith("PASS"))
61 debugString = "PASS <password removed for security>";
140 * <BR><I>Per RFC959</I>
141 **/
142 public void password(String password) throws IOException {
143 sendCommand("PASS " + password);
266 **/
267 public void dataPort() throws IOException, UnknownHostException {
268 StringBuffer command = new StringBuffer("PORT ");
269 String host = cmdSocket.getLocalAddress().getHostAddress();
302 int bound_l = message.lastIndexOf('(', bound_r - 1) + 1;
304 String remoteAddr = message.substring(bound_l, bound_r);
305 int comma1 = remoteAddr.lastIndexOf(',');
306 int port = Integer.parseInt(remoteAddr.substring(comma1 + 1));