Search in sources :

Example 6 with BasicIdentifier

use of edu.uiuc.ncsa.security.core.util.BasicIdentifier in project OA4MP by ncsa.

the class ClientEnvironment method getClient.

/**
 * A {@link Client} object representing the instance of this service.
 * @return
 */
public Client getClient() {
    if (client == null) {
        client = cp.get();
        client.setIdentifier(new BasicIdentifier(getClientId()));
        client.setSecret(getPrivKeyString());
    }
    return client;
}
Also used : BasicIdentifier(edu.uiuc.ncsa.security.core.util.BasicIdentifier)

Aggregations

BasicIdentifier (edu.uiuc.ncsa.security.core.util.BasicIdentifier)6 Client (edu.uiuc.ncsa.security.delegation.storage.Client)3 OA4MPServiceTransaction (edu.uiuc.ncsa.myproxy.oa4mp.server.OA4MPServiceTransaction)2 OA2SE (edu.uiuc.ncsa.myproxy.oa4mp.oauth2.OA2SE)1 OA2ServiceTransaction (edu.uiuc.ncsa.myproxy.oa4mp.oauth2.OA2ServiceTransaction)1 GeneralException (edu.uiuc.ncsa.security.core.exceptions.GeneralException)1 ClientApproval (edu.uiuc.ncsa.security.delegation.server.storage.ClientApproval)1 TransactionStore (edu.uiuc.ncsa.security.delegation.storage.TransactionStore)1 URI (java.net.URI)1 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 LinkedList (java.util.LinkedList)1 Set (java.util.Set)1 Test (org.junit.Test)1