public class VersionInfo extends Object
| Constructor and Description |
|---|
VersionInfo(String version)
Create a new VersionInfo containing the specified version string.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getVersion()
Get the value of the version string returned from the CredHub server.
|
boolean |
isVersion1()
Determine if the CredHub server implements the v1 API.
|
boolean |
isVersion2_0()
Determine if the CredHub server implements the v2.0 API.
|
boolean |
isVersion2_1()
Determine if the CredHub server implements the v2.1 API.
|
boolean |
isVersion2()
Determine if the CredHub server implements the v2 API.
|
public VersionInfo(String version)
version - a version stringpublic String getVersion()
public boolean isVersion1()
true if the server implements the CredHub v1 API; false
otherwisepublic boolean isVersion2()
true if the server implements the CredHub v2 API; false
otherwisepublic boolean isVersion2_0()
true if the server implements the CredHub v2.0 API; false
otherwisepublic boolean isVersion2_1()
true if the server implements the CredHub v2.1 API; false
otherwise