public class LicenseIdentity extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LicenseIdentity.LicenseIdentityBuilder<C extends LicenseIdentity,B extends LicenseIdentity.LicenseIdentityBuilder<C,B>> |
Modifier | Constructor and Description |
---|---|
protected |
LicenseIdentity(LicenseIdentity.LicenseIdentityBuilder<?,?> b) |
Modifier and Type | Method and Description |
---|---|
static LicenseIdentity.LicenseIdentityBuilder<?,?> |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static LicenseIdentity |
fromKey(String licenseKey)
Create license identity from license key.
|
String |
getIdentity()
Get identity of the license (either license key or username), if both have been set this method
will return license key.
|
Long |
getLicenseId()
License ID.
|
String |
getLicenseKey()
License key.
|
String |
getUsername()
Username of license user
|
int |
hashCode() |
void |
setLicenseId(Long licenseId)
License ID.
|
void |
setLicenseKey(String licenseKey)
License key.
|
void |
setUsername(String username)
Username of license user
|
String |
toString() |
protected LicenseIdentity(LicenseIdentity.LicenseIdentityBuilder<?,?> b)
public static LicenseIdentity fromKey(String licenseKey)
licenseKey
- License keypublic String getIdentity()
public static LicenseIdentity.LicenseIdentityBuilder<?,?> builder()
public String getUsername()
public String getLicenseKey()
public Long getLicenseId()
public void setUsername(String username)
public void setLicenseKey(String licenseKey)
public void setLicenseId(Long licenseId)
protected boolean canEqual(Object other)
Copyright © 2025 Cense Data Inc.. All rights reserved.