All Downloads are FREE. Search and download functionalities are using the official Maven repository.

global.namespace.truelicense.v1.auth.V1RepositoryContext Maven / Gradle / Ivy

There is a newer version: 4.0.3
Show newest version
/*
 * Copyright (C) 2005 - 2019 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package global.namespace.truelicense.v1.auth;

import de.schlichtherle.xml.GenericCertificate;
import global.namespace.truelicense.api.auth.RepositoryContext;
import global.namespace.truelicense.api.codec.Codec;

/**
 * A repository context for use with V1 format license keys.
 */
public final class V1RepositoryContext implements RepositoryContext {

    @Override
    public GenericCertificate model() { return new GenericCertificate(); }

    @Override
    public WithCodec with(Codec codec) {
        return model -> new V1RepositoryController(codec, model);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy