global.namespace.truelicense.v1.auth.V1RepositoryContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truelicense-v1 Show documentation
Show all versions of truelicense-v1 Show documentation
Provides the V1 license key format.
/*
* 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