Examples of Credentials


Examples of org.pac4j.core.credentials.Credentials

        client.setCallbackUrl(CALLBACK_URL);
        final MockWebContext context = MockWebContext.create();
        client.redirect(context, false, false);
        final String redirectionUrl = context.getResponseLocation();
        assertEquals(LOGIN_URL, redirectionUrl);
        final Credentials credentials = client.getCredentials(context);
        assertNull(credentials);
    }
View Full Code Here

Examples of org.picketlink.idm.credential.Credentials

     * @param user
     * @param password
     * @return builder implementation
     */
    public void validate(User user, String password) {
        Credentials credential = new UsernamePasswordCredentials(user.getLoginName(), new Password(password));
        identityManager.validateCredentials(credential);
        this.credential = credential;
    }
View Full Code Here

Examples of org.runningman.mailutilities.Credentials

         */
        @Override
        public void doPost(HttpServletRequest req, HttpServletResponse res)
                throws ServletException, IOException {

                Credentials credentials = new Credentials();
                String host = req.getParameter("hostname");
                credentials.setHost(host);
                String user = req.getParameter("username");
                credentials.setUser(user);
                String password = req.getParameter("password");
                credentials.setPassword(password);
                credentials.setPort(993);

                ServletOutputStream out = res.getOutputStream();
                res.setContentType("text/html");
                res.setCharacterEncoding("UTF-8");
                out.println("<html><body bgcolor=\"#CCCCFF\">");
View Full Code Here

Examples of org.runningman.mailutils.Credentials

                this.setModal(true);
                this.setVisible(true);
        }

        public Credentials getCredentials() {
                Credentials credentials = new Credentials();
                credentials.setUser(this.user.getText());
                String text = new String(this.password.getPassword());
                credentials.setPassword(text);
                credentials.setHost(this.host.getText());
                return credentials;
        }
View Full Code Here

Examples of org.teiid.security.Credentials

        String applicationName = connProps.getProperty(TeiidURL.CONNECTION.APP_NAME);
        // user may be null if using trustedToken to log on
        String user = connProps.getProperty(TeiidURL.CONNECTION.USER_NAME, CoreConstants.DEFAULT_ANON_USERNAME);
        // password may be null if using trustedToken to log on
        String password = connProps.getProperty(TeiidURL.CONNECTION.PASSWORD);
    Credentials credential = null;
        if (password != null) {
            credential = new Credentials(password.toCharArray());
        }
       
        boolean adminConnection = Boolean.parseBoolean(connProps.getProperty(TeiidURL.CONNECTION.ADMIN));
    try {
      SessionMetadata sessionInfo = service.createSession(user,credential, applicationName, connProps, adminConnection, true);
View Full Code Here

Examples of railo.commons.security.Credentials

          HTTPEngine.header("User-Agent","CFSCHEDULE")
        };
    //method.setRequestHeader("User-Agent","CFSCHEDULE");
       
       // Userame / Password
        Credentials credentials = task.getCredentials();
        String user=null,pass=null;
        if(credentials!=null) {
          user=credentials.getUsername();
          pass=credentials.getPassword();
            //get.addRequestHeader("Authorization","Basic admin:spwwn1p");
        }
       
        // Proxy
        ProxyData proxy=task.getProxyData();
View Full Code Here

Examples of se.lu.esss.ics.rbac.access.Credentials

        final int port = httpServletRequest.getRemotePort();

        LOGGER.log(Level.FINE, "Credentials: User: " + username + " Role: " + preferredRole + " IP: "+ ip +" Port: "
                + port);
       
        return new Credentials(username, password, preferredRole, ip, port);
    }
View Full Code Here

Examples of slash.navigation.rest.Credentials

    public void setSearchPositionPreference(String searchPositionPreference) {
        preferences.put(SEARCH_POSITION_PREFERENCE, searchPositionPreference);
    }

    public Credentials getCredentials() {
        return new Credentials() {
            public String getUserName() {
                return preferences.get(USERNAME_PREFERENCE, "");
            }

            public String getPassword() {
View Full Code Here

Examples of sun.security.krb5.Credentials

      return;
   
    String serviceName = "host/" + remoteHost.getHost();
    if (LOG.isDebugEnabled())
      LOG.debug("Fetching service ticket for host at: " + serviceName);
    Credentials serviceCred = null;
    try {
      PrincipalName principal = new PrincipalName(serviceName,
          PrincipalName.KRB_NT_SRV_HST);
      serviceCred = Credentials.acquireServiceCreds(principal
          .toString(), Krb5Util.ticketToCreds(getTgtFromSubject()));
View Full Code Here

Examples of ua.pp.bizon.cripto.authorization.Credentials

    private Credentials credentials;

    @Before
    public void setUp() throws Exception {
        credentials = new Credentials();
        credentials.setUsername("");
        credentials.setHashedPassword(CryptoUtil.cryptPassword("123".toCharArray()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.