blob: e8f5e6336ef2954ebf108f884b1ac9399b2d5bc4 (
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.security;
import java.security.Principal;
import static java.util.Objects.requireNonNull;
/**
* Credentials representing an entity for which to modify access control rules.
*
* @author jonmv
*/
public class Credentials {
private final Principal user;
public Credentials(Principal user) {
this.user = requireNonNull(user);
}
/** Returns the user which makes the request. */
public Principal user() { return user; }
}
|