summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/container/http/Client.java
blob: c851ab2bee602dc4300309e283608da36c0e13fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.container.http;

import java.security.cert.X509Certificate;
import java.util.List;

/**
 * Represents a client. The client is identified by one of the provided certificates and have a set of permissions.
 *
 * @author mortent
 */
public class Client {
    private String id;
    private List<String> permissions;
    private List<X509Certificate> certificates;

    public Client(String id, List<String> permissions, List<X509Certificate> certificates) {
        this.id = id;
        this.permissions = permissions;
        this.certificates = certificates;
    }

    public String id() {
        return id;
    }

    public List<String> permissions() {
        return permissions;
    }

    public List<X509Certificate> certificates() {
        return certificates;
    }
}