org.openstack4j.model.identity.v3.Token Maven / Gradle / Ivy
package org.openstack4j.model.identity.v3;
import java.util.Date;
import java.util.List;
import org.openstack4j.model.ModelEntity;
import org.openstack4j.model.identity.AuthStore;
import org.openstack4j.model.identity.AuthVersion;
import com.google.common.collect.SortedSetMultimap;
/**
* V3 token model
*
* @see API reference
*/
public interface Token extends ModelEntity {
/**
* @return the id of the token
*/
String getId();
/**
* @return the catalog of the token
*/
List getCatalog();
/**
* @return the timestamp when the token expires
*/
Date getExpires();
/**
* @return the timestamp when the token was issued
*/
Date getIssuedAt();
/**
* @return the project of the token
*/
Project getProject();
/**
* @return the domain of the token
*/
Domain getDomain();
/**
* @return the User of the token
*/
User getUser();
/**
* @return the authentication store
*/
AuthStore getCredentials();
/**
* @return the endpoint
*/
String getEndpoint();
/**
* @return the list of roles
*/
List getRoles();
/**
* @return the list of audit identifiers
*/
List getAuditIds();
/**
* @return the methods of the token
*/
List getMethods();
/**
* @return the authentication version
*/
AuthVersion getVersion();
/**
* @return the internal UUID used for cache lookups
*/
String getCacheIdentifier();
/**
* sets the id of the token from response header value
*
* @param id the token id
*/
void setId(String id);
/**
* A Lazy loading Aggregated Service Catalog Mapping. The key is a stripped version service type or name with a collection
* of Services sorted by version
*
* @return sorted aggregate service catalog
*/
SortedSetMultimap getAggregatedCatalog();
}