# Print output for @column tags ?>
public
static
final
class
IkeSessionConfiguration.Builder
extends Object
java.lang.Object | |
↳ | android.net.ipsec.ike.IkeSessionConfiguration.Builder |
This class can be used to incrementally construct a IkeSessionConfiguration
.
Except for testing, IKE library users normally do not instantiate IkeSessionConfiguration
themselves but instead get a reference via IkeSessionCallback
Public constructors | |
---|---|
Builder(IkeSessionConnectionInfo ikeConnInfo)
Constructs a Builder. |
Public methods | |
---|---|
IkeSessionConfiguration.Builder
|
addIkeExtension(int extensionType)
Marks an IKE extension as enabled for the |
IkeSessionConfiguration.Builder
|
addRemoteVendorId(byte[] remoteVendorId)
Adds a remote vendor ID for the |
IkeSessionConfiguration
|
build()
Constructs an |
IkeSessionConfiguration.Builder
|
clearIkeExtensions()
Clear all enabled IKE extensions from the |
IkeSessionConfiguration.Builder
|
clearRemoteApplicationVersion()
Clears the remote application version from the |
IkeSessionConfiguration.Builder
|
clearRemoteVendorIds()
Clears all remote vendor IDs from the |
IkeSessionConfiguration.Builder
|
setRemoteApplicationVersion(String remoteApplicationVersion)
Sets the remote application version for the |
Inherited methods | |
---|---|
public Builder (IkeSessionConnectionInfo ikeConnInfo)
Constructs a Builder.
Parameters | |
---|---|
ikeConnInfo |
IkeSessionConnectionInfo : the connection information
This value cannot be null . |
public IkeSessionConfiguration.Builder addIkeExtension (int extensionType)
Marks an IKE extension as enabled for the IkeSessionConfiguration
being built.
Parameters | |
---|---|
extensionType |
int : the enabled extension
Value is IkeSessionConfiguration.EXTENSION_TYPE_FRAGMENTATION , or IkeSessionConfiguration.EXTENSION_TYPE_MOBIKE |
Returns | |
---|---|
IkeSessionConfiguration.Builder |
Builder this, to facilitate chaining
This value cannot be null . |
public IkeSessionConfiguration.Builder addRemoteVendorId (byte[] remoteVendorId)
Adds a remote vendor ID for the IkeSessionConfiguration
being built.
Parameters | |
---|---|
remoteVendorId |
byte : a remote vendor ID
This value cannot be null . |
Returns | |
---|---|
IkeSessionConfiguration.Builder |
Builder this, to facilitate chaining
This value cannot be null . |
public IkeSessionConfiguration build ()
Constructs an IkeSessionConfiguration
instance.
Returns | |
---|---|
IkeSessionConfiguration |
This value cannot be null . |
public IkeSessionConfiguration.Builder clearIkeExtensions ()
Clear all enabled IKE extensions from the IkeSessionConfiguration
being built.
Returns | |
---|---|
IkeSessionConfiguration.Builder |
Builder this, to facilitate chaining
This value cannot be null . |
public IkeSessionConfiguration.Builder clearRemoteApplicationVersion ()
Clears the remote application version from the IkeSessionConfiguration
being
built.
Returns | |
---|---|
IkeSessionConfiguration.Builder |
Builder this, to facilitate chaining
This value cannot be null . |
public IkeSessionConfiguration.Builder clearRemoteVendorIds ()
Clears all remote vendor IDs from the IkeSessionConfiguration
being built.
Returns | |
---|---|
IkeSessionConfiguration.Builder |
Builder this, to facilitate chaining
This value cannot be null . |
public IkeSessionConfiguration.Builder setRemoteApplicationVersion (String remoteApplicationVersion)
Sets the remote application version for the IkeSessionConfiguration
being built.
Parameters | |
---|---|
remoteApplicationVersion |
String : the remote application version. Defaults to an empty
string.
This value cannot be null . |
Returns | |
---|---|
IkeSessionConfiguration.Builder |
Builder this, to facilitate chaining
This value cannot be null . |