public class VersionInfo
extends java.lang.Object
Constructor and Description |
---|
VersionInfo(java.lang.String version)
Create a new VersionInfo containing the specified version string.
|
Modifier and Type | Method and Description |
---|---|
java.lang.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()
Determine if the CredHub server implements the v2 API.
|
public VersionInfo(java.lang.String version)
version
- a version stringpublic java.lang.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
otherwise