blob: 5ca005b6582bc8e561094192c3fe70f483fbe8d3 (
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
|
// 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 com.yahoo.config.provision.TenantName;
import static java.util.Objects.requireNonNull;
/**
* Extends the specification for creating a cloud tenant.
*
* @author jonmv
*/
public class CloudTenantSpec extends TenantSpec {
private final String registrationToken;
public CloudTenantSpec(TenantName tenant, String registrationToken) {
super(tenant);
this.registrationToken = requireNonNull(registrationToken);
}
/** The cloud issued token proving the user intends to register the given tenant. */
public String getRegistrationToken() { return registrationToken; }
}
|