Examples of Credentials


Examples of com.threerings.presents.net.Credentials

        String msg = MessageBundle.tcompose("m.logging_on",
                                            server, String.valueOf(port));
        _status.append(_msgs.xlate(msg) + "\n");

        // configure the client with some credentials and logon
        Credentials creds = new UsernamePasswordCreds(username, password);
        Client client = _ctx.getClient();
        client.setCredentials(creds);
        client.logon();
    }
View Full Code Here

Examples of com.vladmihalcea.flexypool.connection.Credentials

        when(connectionAcquiringStrategy.getConnection(connectionRequestContextArgumentCaptor.capture()))
                .thenReturn(connection);
        verify(connection, never()).getMetaData();
        flexyPoolDataSource.getConnection("username", "password").getMetaData();
        verify(connection, times(1)).getMetaData();
        Credentials credentials = connectionRequestContextArgumentCaptor.getValue().getCredentials();
        assertEquals("username", credentials.getUsername());
        assertEquals("password", credentials.getPassword());
        verify(overallConnectionAcquireTimer, times(1)).update(anyLong(), eq(TimeUnit.MILLISECONDS));
        verify(concurrentConnectionRequestCountHistogram, times(1)).update(1);
        verify(concurrentConnectionRequestCountHistogram, times(1)).update(0);
    }
View Full Code Here

Examples of com.wesabe.grendel.auth.Credentials

  public static class A_Set_Of_Credentials {
    private Credentials creds;
   
    @Before
    public void setup() throws Exception {
      this.creds = new Credentials("woo", "hah");
    }
View Full Code Here

Examples of io.fathom.cloud.identity.api.os.model.Credentials

    @GET
    @Produces({ JSON })
    public Credentials listEc2Credentials() throws CloudException {
        UserData user = getUser(Long.valueOf(userId));

        Credentials response = new Credentials();
        response.credentials = Lists.newArrayList();

        log.warn("TODO: EC2 credential enumeration is terrible");

        for (CredentialData data : authRepository.getEc2Credentials().list()) {
View Full Code Here

Examples of jade.security.Credentials

    Object result = null;
    boolean resultNeeded = false;
    Object asynchNotificationKey = null;

    JADEPrincipal requesterPrincipal = null;
    Credentials requesterCredentials = null;
    try {
      CredentialsHelper ch = (CredentialsHelper) myAgent.getHelper("jade.core.security.Security");
      requesterPrincipal = ch.getPrincipal(request);
      requesterCredentials = ch.getCredentials(request);
    }
View Full Code Here

Examples of javax.jcr.Credentials

    /**
     * {@inheritDoc}
     */
    public SessionInfo obtain(Credentials credentials, String workspaceName)
            throws LoginException, NoSuchWorkspaceException, RepositoryException {
        Credentials duplicate = SessionInfoImpl.duplicateCredentials(credentials);
        return new SessionInfoImpl(repository.login(credentials, workspaceName), duplicate, getNameFactory(), getPathFactory());
    }
View Full Code Here

Examples of javax.jcr.Credentials

    /**
     * {@inheritDoc}
     */
    public SessionInfo impersonate(SessionInfo sessionInfo, Credentials credentials) throws LoginException, RepositoryException {
        Credentials duplicate = SessionInfoImpl.duplicateCredentials(credentials);
        SessionInfoImpl sInfo = getSessionInfoImpl(sessionInfo);
        return new SessionInfoImpl(sInfo.getSession().impersonate(credentials), duplicate, getNameFactory(), getPathFactory());
    }
View Full Code Here

Examples of javax.jcr.Credentials

                continue;
            }
            checked++;
            final String username = parts[0].trim();
            final String password = parts[1].trim();
            final Credentials creds = new SimpleCredentials(username, password.toCharArray());
            Session s = null;
            try {
                s = repository.login(creds);
                if(s != null) {
                    failures++;
View Full Code Here

Examples of javax.jcr.Credentials

     *         successfull authentication.
     * @throws NullPointerException if <code>userName</code> is
     *             <code>null</code>.
     */
    public Object authenticate(String userName, String password) {
        final Credentials creds = new SimpleCredentials(userName,
            (password == null) ? new char[0] : password.toCharArray());
        Session session = null;
        try {
            session = repository.login(creds);
            if (session instanceof JackrabbitSession) {
View Full Code Here

Examples of javax.jcr.Credentials

    private Repository getRepository() {
      return repository;
    }

    private Session createSession() throws RepositoryException {
        final Credentials credentials = new SimpleCredentials("admin",
                "admin".toCharArray());
        return repository.login(credentials, "default");
    }
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.