"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Token = void 0;
/** An expiring token scoped for a specific repository and actions within it.
 */
class Token {
    /**
     *
     * @param token The content of a bearer token (without its header prefix. ie: the Authorization http header will need this value to be prefixed with "Bearer ").
     * @param scopedImageName The name of the image in Docker Hub INCLUDING its scope prefix. eg:  "yourcompany/your-app-image".  This ALSO goes for Docker Hub public library images, for which you MUST prepend their "library" prefix.
     * @param actions The Access Control List (ACL) of permissions this token has been granted.  eg:  pull, push, *.
     * @param expirationUtc The instant after which this token will fail to authenticate a registry request.
     */
    constructor(token, scopedImageName, actions, expirationUtc) {
        this.token = token;
        this.scopedImageName = scopedImageName;
        this.actions = actions;
        this.expirationUtc = expirationUtc;
    }
}
exports.Token = Token;
//# sourceMappingURL=token.js.map