ike

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 6 Imported by: 1

Documentation

Overview

Package ike provides Go bindings for android.net.ipsec.ike.

Index

Constants

View Source
const (
	IkeDpdDelaySecDisabled              = consts.IkeDpdDelaySecDisabled
	IkeOptionAcceptAnyRemoteId          = consts.IkeOptionAcceptAnyRemoteId
	IkeOptionEapOnlyAuth                = consts.IkeOptionEapOnlyAuth
	IkeOptionForcePort4500              = consts.IkeOptionForcePort4500
	IkeOptionInitialContact             = consts.IkeOptionInitialContact
	IkeOptionMobike                     = consts.IkeOptionMobike
	ExtensionTypeFragmentation          = consts.ExtensionTypeFragmentation
	ExtensionTypeMobike                 = consts.ExtensionTypeMobike
	DhGroup1024BitModp                  = consts.DhGroup1024BitModp
	DhGroup1536BitModp                  = consts.DhGroup1536BitModp
	DhGroup2048BitModp                  = consts.DhGroup2048BitModp
	DhGroup3072BitModp                  = consts.DhGroup3072BitModp
	DhGroup4096BitModp                  = consts.DhGroup4096BitModp
	DhGroupCurve25519                   = consts.DhGroupCurve25519
	DhGroupNone                         = consts.DhGroupNone
	EncryptionAlgorithm3des             = consts.EncryptionAlgorithm3des
	EncryptionAlgorithmAesCbc           = consts.EncryptionAlgorithmAesCbc
	EncryptionAlgorithmAesCtr           = consts.EncryptionAlgorithmAesCtr
	EncryptionAlgorithmAesGcm12         = consts.EncryptionAlgorithmAesGcm12
	EncryptionAlgorithmAesGcm16         = consts.EncryptionAlgorithmAesGcm16
	EncryptionAlgorithmAesGcm8          = consts.EncryptionAlgorithmAesGcm8
	EncryptionAlgorithmChacha20Poly1305 = consts.EncryptionAlgorithmChacha20Poly1305
	IntegrityAlgorithmAesCmac96         = consts.IntegrityAlgorithmAesCmac96
	IntegrityAlgorithmAesXcbc96         = consts.IntegrityAlgorithmAesXcbc96
	IntegrityAlgorithmHmacSha196        = consts.IntegrityAlgorithmHmacSha196
	IntegrityAlgorithmHmacSha2256128    = consts.IntegrityAlgorithmHmacSha2256128
	IntegrityAlgorithmHmacSha2384192    = consts.IntegrityAlgorithmHmacSha2384192
	IntegrityAlgorithmHmacSha2512256    = consts.IntegrityAlgorithmHmacSha2512256
	IntegrityAlgorithmNone              = consts.IntegrityAlgorithmNone
	KeyLenAes128                        = consts.KeyLenAes128
	KeyLenAes192                        = consts.KeyLenAes192
	KeyLenAes256                        = consts.KeyLenAes256
	KeyLenUnused                        = consts.KeyLenUnused
	PseudorandomFunctionAes128Cmac      = consts.PseudorandomFunctionAes128Cmac
	PseudorandomFunctionAes128Xcbc      = consts.PseudorandomFunctionAes128Xcbc
	PseudorandomFunctionHmacSha1        = consts.PseudorandomFunctionHmacSha1
	PseudorandomFunctionSha2256         = consts.PseudorandomFunctionSha2256
	PseudorandomFunctionSha2384         = consts.PseudorandomFunctionSha2384
	PseudorandomFunctionSha2512         = consts.PseudorandomFunctionSha2512
)

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type ChildSaProposal

type ChildSaProposal struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ChildSaProposal wraps android.net.ipsec.ike.ChildSaProposal.

func (*ChildSaProposal) Equals

func (m *ChildSaProposal) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.ChildSaProposal.equals.

func (*ChildSaProposal) HashCode

func (m *ChildSaProposal) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.ChildSaProposal.hashCode.

type ChildSaProposalBuilder

type ChildSaProposalBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ChildSaProposalBuilder wraps android.net.ipsec.ike.ChildSaProposal$Builder.

func (*ChildSaProposalBuilder) AddDhGroup

func (m *ChildSaProposalBuilder) AddDhGroup(arg0 int32) (*jni.Object, error)

AddDhGroup calls android.net.ipsec.ike.ChildSaProposal$Builder.addDhGroup.

func (*ChildSaProposalBuilder) AddEncryptionAlgorithm

func (m *ChildSaProposalBuilder) AddEncryptionAlgorithm(arg0 int32, arg1 int32) (*jni.Object, error)

AddEncryptionAlgorithm calls android.net.ipsec.ike.ChildSaProposal$Builder.addEncryptionAlgorithm.

func (*ChildSaProposalBuilder) AddIntegrityAlgorithm

func (m *ChildSaProposalBuilder) AddIntegrityAlgorithm(arg0 int32) (*jni.Object, error)

AddIntegrityAlgorithm calls android.net.ipsec.ike.ChildSaProposal$Builder.addIntegrityAlgorithm.

func (*ChildSaProposalBuilder) Build

func (m *ChildSaProposalBuilder) Build() (*jni.Object, error)

Build calls android.net.ipsec.ike.ChildSaProposal$Builder.build.

type ChildSessionCallback

type ChildSessionCallback struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ChildSessionCallback wraps android.net.ipsec.ike.ChildSessionCallback.

func (*ChildSessionCallback) OnClosed

func (m *ChildSessionCallback) OnClosed() error

OnClosed calls android.net.ipsec.ike.ChildSessionCallback.onClosed.

func (*ChildSessionCallback) OnIpSecTransformCreated

func (m *ChildSessionCallback) OnIpSecTransformCreated(arg0 *jni.Object, arg1 int32) error

OnIpSecTransformCreated calls android.net.ipsec.ike.ChildSessionCallback.onIpSecTransformCreated.

func (*ChildSessionCallback) OnIpSecTransformDeleted

func (m *ChildSessionCallback) OnIpSecTransformDeleted(arg0 *jni.Object, arg1 int32) error

OnIpSecTransformDeleted calls android.net.ipsec.ike.ChildSessionCallback.onIpSecTransformDeleted.

func (*ChildSessionCallback) OnOpened

func (m *ChildSessionCallback) OnOpened(arg0 *jni.Object) error

OnOpened calls android.net.ipsec.ike.ChildSessionCallback.onOpened.

type ChildSessionConfigurationBuilder

type ChildSessionConfigurationBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ChildSessionConfigurationBuilder wraps android.net.ipsec.ike.ChildSessionConfiguration$Builder.

func (*ChildSessionConfigurationBuilder) Build

Build calls android.net.ipsec.ike.ChildSessionConfiguration$Builder.build.

type ChildSessionParams

type ChildSessionParams struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ChildSessionParams wraps android.net.ipsec.ike.ChildSessionParams.

func (*ChildSessionParams) Equals

func (m *ChildSessionParams) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.ChildSessionParams.equals.

func (*ChildSessionParams) GetHardLifetimeSeconds

func (m *ChildSessionParams) GetHardLifetimeSeconds() (int32, error)

GetHardLifetimeSeconds calls android.net.ipsec.ike.ChildSessionParams.getHardLifetimeSeconds.

func (*ChildSessionParams) GetSoftLifetimeSeconds

func (m *ChildSessionParams) GetSoftLifetimeSeconds() (int32, error)

GetSoftLifetimeSeconds calls android.net.ipsec.ike.ChildSessionParams.getSoftLifetimeSeconds.

func (*ChildSessionParams) HashCode

func (m *ChildSessionParams) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.ChildSessionParams.hashCode.

type DerAsn1DnIdentification

type DerAsn1DnIdentification struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DerAsn1DnIdentification wraps android.net.ipsec.ike.IkeDerAsn1DnIdentification.

func NewDerAsn1DnIdentification

func NewDerAsn1DnIdentification(vm *jni.VM, arg0 *jni.Object) (*DerAsn1DnIdentification, error)

NewDerAsn1DnIdentification creates a new android.net.ipsec.ike.IkeDerAsn1DnIdentification instance.

func (*DerAsn1DnIdentification) Equals

func (m *DerAsn1DnIdentification) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeDerAsn1DnIdentification.equals.

func (*DerAsn1DnIdentification) HashCode

func (m *DerAsn1DnIdentification) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeDerAsn1DnIdentification.hashCode.

type FqdnIdentification

type FqdnIdentification struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

FqdnIdentification wraps android.net.ipsec.ike.IkeFqdnIdentification.

func NewFqdnIdentification

func NewFqdnIdentification(vm *jni.VM, arg0 string) (*FqdnIdentification, error)

NewFqdnIdentification creates a new android.net.ipsec.ike.IkeFqdnIdentification instance.

func (*FqdnIdentification) Equals

func (m *FqdnIdentification) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeFqdnIdentification.equals.

func (*FqdnIdentification) HashCode

func (m *FqdnIdentification) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeFqdnIdentification.hashCode.

type IkeSaProposal

type IkeSaProposal struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

IkeSaProposal wraps android.net.ipsec.ike.IkeSaProposal.

func (*IkeSaProposal) Equals

func (m *IkeSaProposal) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeSaProposal.equals.

func (*IkeSaProposal) HashCode

func (m *IkeSaProposal) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeSaProposal.hashCode.

type Ipv4AddrIdentification

type Ipv4AddrIdentification struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Ipv4AddrIdentification wraps android.net.ipsec.ike.IkeIpv4AddrIdentification.

func NewIpv4AddrIdentification

func NewIpv4AddrIdentification(vm *jni.VM, arg0 *jni.Object) (*Ipv4AddrIdentification, error)

NewIpv4AddrIdentification creates a new android.net.ipsec.ike.IkeIpv4AddrIdentification instance.

func (*Ipv4AddrIdentification) Equals

func (m *Ipv4AddrIdentification) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeIpv4AddrIdentification.equals.

func (*Ipv4AddrIdentification) HashCode

func (m *Ipv4AddrIdentification) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeIpv4AddrIdentification.hashCode.

type Ipv6AddrIdentification

type Ipv6AddrIdentification struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Ipv6AddrIdentification wraps android.net.ipsec.ike.IkeIpv6AddrIdentification.

func NewIpv6AddrIdentification

func NewIpv6AddrIdentification(vm *jni.VM, arg0 *jni.Object) (*Ipv6AddrIdentification, error)

NewIpv6AddrIdentification creates a new android.net.ipsec.ike.IkeIpv6AddrIdentification instance.

func (*Ipv6AddrIdentification) Equals

func (m *Ipv6AddrIdentification) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeIpv6AddrIdentification.equals.

func (*Ipv6AddrIdentification) HashCode

func (m *Ipv6AddrIdentification) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeIpv6AddrIdentification.hashCode.

type KeyIdIdentification

type KeyIdIdentification struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

KeyIdIdentification wraps android.net.ipsec.ike.IkeKeyIdIdentification.

func NewKeyIdIdentification

func NewKeyIdIdentification(vm *jni.VM, arg0 *jni.Object) (*KeyIdIdentification, error)

NewKeyIdIdentification creates a new android.net.ipsec.ike.IkeKeyIdIdentification instance.

func (*KeyIdIdentification) Equals

func (m *KeyIdIdentification) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeKeyIdIdentification.equals.

func (*KeyIdIdentification) HashCode

func (m *KeyIdIdentification) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeKeyIdIdentification.hashCode.

type Rfc822AddrIdentification

type Rfc822AddrIdentification struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Rfc822AddrIdentification wraps android.net.ipsec.ike.IkeRfc822AddrIdentification.

func NewRfc822AddrIdentification

func NewRfc822AddrIdentification(vm *jni.VM, arg0 string) (*Rfc822AddrIdentification, error)

NewRfc822AddrIdentification creates a new android.net.ipsec.ike.IkeRfc822AddrIdentification instance.

func (*Rfc822AddrIdentification) Equals

func (m *Rfc822AddrIdentification) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeRfc822AddrIdentification.equals.

func (*Rfc822AddrIdentification) HashCode

func (m *Rfc822AddrIdentification) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeRfc822AddrIdentification.hashCode.

type SaProposal

type SaProposal struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SaProposal wraps android.net.ipsec.ike.SaProposal.

func (*SaProposal) Equals

func (m *SaProposal) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.SaProposal.equals.

func (*SaProposal) HashCode

func (m *SaProposal) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.SaProposal.hashCode.

func (*SaProposal) ToString

func (m *SaProposal) ToString() (string, error)

ToString calls android.net.ipsec.ike.SaProposal.toString.

type SaProposalBuilder

type SaProposalBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SaProposalBuilder wraps android.net.ipsec.ike.IkeSaProposal$Builder.

func (*SaProposalBuilder) AddDhGroup

func (m *SaProposalBuilder) AddDhGroup(arg0 int32) (*jni.Object, error)

AddDhGroup calls android.net.ipsec.ike.IkeSaProposal$Builder.addDhGroup.

func (*SaProposalBuilder) AddEncryptionAlgorithm

func (m *SaProposalBuilder) AddEncryptionAlgorithm(arg0 int32, arg1 int32) (*jni.Object, error)

AddEncryptionAlgorithm calls android.net.ipsec.ike.IkeSaProposal$Builder.addEncryptionAlgorithm.

func (*SaProposalBuilder) AddIntegrityAlgorithm

func (m *SaProposalBuilder) AddIntegrityAlgorithm(arg0 int32) (*jni.Object, error)

AddIntegrityAlgorithm calls android.net.ipsec.ike.IkeSaProposal$Builder.addIntegrityAlgorithm.

func (*SaProposalBuilder) AddPseudorandomFunction

func (m *SaProposalBuilder) AddPseudorandomFunction(arg0 int32) (*jni.Object, error)

AddPseudorandomFunction calls android.net.ipsec.ike.IkeSaProposal$Builder.addPseudorandomFunction.

func (*SaProposalBuilder) Build

func (m *SaProposalBuilder) Build() (*jni.Object, error)

Build calls android.net.ipsec.ike.IkeSaProposal$Builder.build.

type Session

type Session struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Session wraps android.net.ipsec.ike.IkeSession.

func NewSession

func NewSession(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object, arg3 *jni.Object, arg4 *jni.Object, arg5 *jni.Object) (*Session, error)

NewSession creates a new android.net.ipsec.ike.IkeSession instance.

func (*Session) Close

func (m *Session) Close() error

Close calls android.net.ipsec.ike.IkeSession.close.

func (*Session) CloseChildSession

func (m *Session) CloseChildSession(arg0 *jni.Object) error

CloseChildSession calls android.net.ipsec.ike.IkeSession.closeChildSession.

func (*Session) Dump

func (m *Session) Dump(arg0 *jni.Object) error

Dump calls android.net.ipsec.ike.IkeSession.dump.

func (*Session) Finalize

func (m *Session) Finalize() error

Finalize calls android.net.ipsec.ike.IkeSession.finalize.

func (*Session) Kill

func (m *Session) Kill() error

Kill calls android.net.ipsec.ike.IkeSession.kill.

func (*Session) OpenChildSession

func (m *Session) OpenChildSession(arg0 *jni.Object, arg1 *jni.Object) error

OpenChildSession calls android.net.ipsec.ike.IkeSession.openChildSession.

type SessionCallback

type SessionCallback struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SessionCallback wraps android.net.ipsec.ike.IkeSessionCallback.

func (*SessionCallback) OnClosed

func (m *SessionCallback) OnClosed() error

OnClosed calls android.net.ipsec.ike.IkeSessionCallback.onClosed.

func (*SessionCallback) OnOpened

func (m *SessionCallback) OnOpened(arg0 *jni.Object) error

OnOpened calls android.net.ipsec.ike.IkeSessionCallback.onOpened.

type SessionConfiguration

type SessionConfiguration struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SessionConfiguration wraps android.net.ipsec.ike.IkeSessionConfiguration.

func (*SessionConfiguration) GetEapInfo

func (m *SessionConfiguration) GetEapInfo() (*jni.Object, error)

GetEapInfo calls android.net.ipsec.ike.IkeSessionConfiguration.getEapInfo.

func (*SessionConfiguration) GetIkeSessionConnectionInfo

func (m *SessionConfiguration) GetIkeSessionConnectionInfo() (*jni.Object, error)

GetIkeSessionConnectionInfo calls android.net.ipsec.ike.IkeSessionConfiguration.getIkeSessionConnectionInfo.

func (*SessionConfiguration) GetRemoteApplicationVersion

func (m *SessionConfiguration) GetRemoteApplicationVersion() (string, error)

GetRemoteApplicationVersion calls android.net.ipsec.ike.IkeSessionConfiguration.getRemoteApplicationVersion.

func (*SessionConfiguration) IsIkeExtensionEnabled

func (m *SessionConfiguration) IsIkeExtensionEnabled(arg0 int32) (bool, error)

IsIkeExtensionEnabled calls android.net.ipsec.ike.IkeSessionConfiguration.isIkeExtensionEnabled.

type SessionConfigurationBuilder

type SessionConfigurationBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SessionConfigurationBuilder wraps android.net.ipsec.ike.IkeSessionConfiguration$Builder.

func (*SessionConfigurationBuilder) AddIkeExtension

func (m *SessionConfigurationBuilder) AddIkeExtension(arg0 int32) (*jni.Object, error)

AddIkeExtension calls android.net.ipsec.ike.IkeSessionConfiguration$Builder.addIkeExtension.

func (*SessionConfigurationBuilder) AddRemoteVendorId

func (m *SessionConfigurationBuilder) AddRemoteVendorId(arg0 *jni.Object) (*jni.Object, error)

AddRemoteVendorId calls android.net.ipsec.ike.IkeSessionConfiguration$Builder.addRemoteVendorId.

func (*SessionConfigurationBuilder) Build

Build calls android.net.ipsec.ike.IkeSessionConfiguration$Builder.build.

func (*SessionConfigurationBuilder) ClearIkeExtensions

func (m *SessionConfigurationBuilder) ClearIkeExtensions() (*jni.Object, error)

ClearIkeExtensions calls android.net.ipsec.ike.IkeSessionConfiguration$Builder.clearIkeExtensions.

func (*SessionConfigurationBuilder) ClearRemoteApplicationVersion

func (m *SessionConfigurationBuilder) ClearRemoteApplicationVersion() (*jni.Object, error)

ClearRemoteApplicationVersion calls android.net.ipsec.ike.IkeSessionConfiguration$Builder.clearRemoteApplicationVersion.

func (*SessionConfigurationBuilder) ClearRemoteVendorIds

func (m *SessionConfigurationBuilder) ClearRemoteVendorIds() (*jni.Object, error)

ClearRemoteVendorIds calls android.net.ipsec.ike.IkeSessionConfiguration$Builder.clearRemoteVendorIds.

func (*SessionConfigurationBuilder) SetEapInfo

func (m *SessionConfigurationBuilder) SetEapInfo(arg0 *jni.Object) (*jni.Object, error)

SetEapInfo calls android.net.ipsec.ike.IkeSessionConfiguration$Builder.setEapInfo.

func (*SessionConfigurationBuilder) SetRemoteApplicationVersion

func (m *SessionConfigurationBuilder) SetRemoteApplicationVersion(arg0 string) (*jni.Object, error)

SetRemoteApplicationVersion calls android.net.ipsec.ike.IkeSessionConfiguration$Builder.setRemoteApplicationVersion.

type SessionConnectionInfo

type SessionConnectionInfo struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SessionConnectionInfo wraps android.net.ipsec.ike.IkeSessionConnectionInfo.

func NewSessionConnectionInfo

func NewSessionConnectionInfo(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object, arg2 *jni.Object) (*SessionConnectionInfo, error)

NewSessionConnectionInfo creates a new android.net.ipsec.ike.IkeSessionConnectionInfo instance.

func (*SessionConnectionInfo) GetLocalAddress

func (m *SessionConnectionInfo) GetLocalAddress() (*jni.Object, error)

GetLocalAddress calls android.net.ipsec.ike.IkeSessionConnectionInfo.getLocalAddress.

func (*SessionConnectionInfo) GetNetwork

func (m *SessionConnectionInfo) GetNetwork() (*jni.Object, error)

GetNetwork calls android.net.ipsec.ike.IkeSessionConnectionInfo.getNetwork.

func (*SessionConnectionInfo) GetRemoteAddress

func (m *SessionConnectionInfo) GetRemoteAddress() (*jni.Object, error)

GetRemoteAddress calls android.net.ipsec.ike.IkeSessionConnectionInfo.getRemoteAddress.

type SessionParams

type SessionParams struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SessionParams wraps android.net.ipsec.ike.IkeSessionParams.

func (*SessionParams) Equals

func (m *SessionParams) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeSessionParams.equals.

func (*SessionParams) GetDpdDelaySeconds

func (m *SessionParams) GetDpdDelaySeconds() (int32, error)

GetDpdDelaySeconds calls android.net.ipsec.ike.IkeSessionParams.getDpdDelaySeconds.

func (*SessionParams) GetHardLifetimeSeconds

func (m *SessionParams) GetHardLifetimeSeconds() (int32, error)

GetHardLifetimeSeconds calls android.net.ipsec.ike.IkeSessionParams.getHardLifetimeSeconds.

func (*SessionParams) GetLocalAuthConfig

func (m *SessionParams) GetLocalAuthConfig() (*jni.Object, error)

GetLocalAuthConfig calls android.net.ipsec.ike.IkeSessionParams.getLocalAuthConfig.

func (*SessionParams) GetLocalIdentification

func (m *SessionParams) GetLocalIdentification() (*jni.Object, error)

GetLocalIdentification calls android.net.ipsec.ike.IkeSessionParams.getLocalIdentification.

func (*SessionParams) GetNattKeepAliveDelaySeconds

func (m *SessionParams) GetNattKeepAliveDelaySeconds() (int32, error)

GetNattKeepAliveDelaySeconds calls android.net.ipsec.ike.IkeSessionParams.getNattKeepAliveDelaySeconds.

func (*SessionParams) GetNetwork

func (m *SessionParams) GetNetwork() (*jni.Object, error)

GetNetwork calls android.net.ipsec.ike.IkeSessionParams.getNetwork.

func (*SessionParams) GetRemoteAuthConfig

func (m *SessionParams) GetRemoteAuthConfig() (*jni.Object, error)

GetRemoteAuthConfig calls android.net.ipsec.ike.IkeSessionParams.getRemoteAuthConfig.

func (*SessionParams) GetRemoteIdentification

func (m *SessionParams) GetRemoteIdentification() (*jni.Object, error)

GetRemoteIdentification calls android.net.ipsec.ike.IkeSessionParams.getRemoteIdentification.

func (*SessionParams) GetRetransmissionTimeoutsMillis

func (m *SessionParams) GetRetransmissionTimeoutsMillis() (*jni.Object, error)

GetRetransmissionTimeoutsMillis calls android.net.ipsec.ike.IkeSessionParams.getRetransmissionTimeoutsMillis.

func (*SessionParams) GetServerHostname

func (m *SessionParams) GetServerHostname() (string, error)

GetServerHostname calls android.net.ipsec.ike.IkeSessionParams.getServerHostname.

func (*SessionParams) GetSoftLifetimeSeconds

func (m *SessionParams) GetSoftLifetimeSeconds() (int32, error)

GetSoftLifetimeSeconds calls android.net.ipsec.ike.IkeSessionParams.getSoftLifetimeSeconds.

func (*SessionParams) HasIkeOption

func (m *SessionParams) HasIkeOption(arg0 int32) (bool, error)

HasIkeOption calls android.net.ipsec.ike.IkeSessionParams.hasIkeOption.

func (*SessionParams) HashCode

func (m *SessionParams) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeSessionParams.hashCode.

type SessionParamsBuilder

type SessionParamsBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SessionParamsBuilder wraps android.net.ipsec.ike.IkeSessionParams$Builder.

func (*SessionParamsBuilder) AddIkeOption

func (m *SessionParamsBuilder) AddIkeOption(arg0 int32) (*jni.Object, error)

AddIkeOption calls android.net.ipsec.ike.IkeSessionParams$Builder.addIkeOption.

func (*SessionParamsBuilder) AddIkeSaProposal

func (m *SessionParamsBuilder) AddIkeSaProposal(arg0 *jni.Object) (*jni.Object, error)

AddIkeSaProposal calls android.net.ipsec.ike.IkeSessionParams$Builder.addIkeSaProposal.

func (*SessionParamsBuilder) Build

func (m *SessionParamsBuilder) Build() (*jni.Object, error)

Build calls android.net.ipsec.ike.IkeSessionParams$Builder.build.

func (*SessionParamsBuilder) RemoveIkeOption

func (m *SessionParamsBuilder) RemoveIkeOption(arg0 int32) (*jni.Object, error)

RemoveIkeOption calls android.net.ipsec.ike.IkeSessionParams$Builder.removeIkeOption.

func (*SessionParamsBuilder) SetAuthDigitalSignature

func (m *SessionParamsBuilder) SetAuthDigitalSignature(
	arg0 *jni.Object,
	arg1 *jni.Object,
	arg2 *jni.Object,
) (*jni.Object, error)

SetAuthDigitalSignature calls android.net.ipsec.ike.IkeSessionParams$Builder.setAuthDigitalSignature.

func (*SessionParamsBuilder) SetAuthEap

func (m *SessionParamsBuilder) SetAuthEap(arg0 *jni.Object, arg1 *jni.Object) (*jni.Object, error)

SetAuthEap calls android.net.ipsec.ike.IkeSessionParams$Builder.setAuthEap.

func (*SessionParamsBuilder) SetAuthPsk

func (m *SessionParamsBuilder) SetAuthPsk(arg0 *jni.Object) (*jni.Object, error)

SetAuthPsk calls android.net.ipsec.ike.IkeSessionParams$Builder.setAuthPsk.

func (*SessionParamsBuilder) SetDpdDelaySeconds

func (m *SessionParamsBuilder) SetDpdDelaySeconds(arg0 int32) (*jni.Object, error)

SetDpdDelaySeconds calls android.net.ipsec.ike.IkeSessionParams$Builder.setDpdDelaySeconds.

func (*SessionParamsBuilder) SetLifetimeSeconds

func (m *SessionParamsBuilder) SetLifetimeSeconds(arg0 int32, arg1 int32) (*jni.Object, error)

SetLifetimeSeconds calls android.net.ipsec.ike.IkeSessionParams$Builder.setLifetimeSeconds.

func (*SessionParamsBuilder) SetLocalIdentification

func (m *SessionParamsBuilder) SetLocalIdentification(arg0 *jni.Object) (*jni.Object, error)

SetLocalIdentification calls android.net.ipsec.ike.IkeSessionParams$Builder.setLocalIdentification.

func (*SessionParamsBuilder) SetNattKeepAliveDelaySeconds

func (m *SessionParamsBuilder) SetNattKeepAliveDelaySeconds(arg0 int32) (*jni.Object, error)

SetNattKeepAliveDelaySeconds calls android.net.ipsec.ike.IkeSessionParams$Builder.setNattKeepAliveDelaySeconds.

func (*SessionParamsBuilder) SetNetwork

func (m *SessionParamsBuilder) SetNetwork(arg0 *jni.Object) (*jni.Object, error)

SetNetwork calls android.net.ipsec.ike.IkeSessionParams$Builder.setNetwork.

func (*SessionParamsBuilder) SetRemoteIdentification

func (m *SessionParamsBuilder) SetRemoteIdentification(arg0 *jni.Object) (*jni.Object, error)

SetRemoteIdentification calls android.net.ipsec.ike.IkeSessionParams$Builder.setRemoteIdentification.

func (*SessionParamsBuilder) SetRetransmissionTimeoutsMillis

func (m *SessionParamsBuilder) SetRetransmissionTimeoutsMillis(arg0 *jni.Object) (*jni.Object, error)

SetRetransmissionTimeoutsMillis calls android.net.ipsec.ike.IkeSessionParams$Builder.setRetransmissionTimeoutsMillis.

func (*SessionParamsBuilder) SetServerHostname

func (m *SessionParamsBuilder) SetServerHostname(arg0 string) (*jni.Object, error)

SetServerHostname calls android.net.ipsec.ike.IkeSessionParams$Builder.setServerHostname.

type SessionParamsIkeAuthConfig

type SessionParamsIkeAuthConfig struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SessionParamsIkeAuthConfig wraps android.net.ipsec.ike.IkeSessionParams$IkeAuthConfig.

func (*SessionParamsIkeAuthConfig) Equals

func (m *SessionParamsIkeAuthConfig) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeSessionParams$IkeAuthConfig.equals.

func (*SessionParamsIkeAuthConfig) HashCode

func (m *SessionParamsIkeAuthConfig) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeSessionParams$IkeAuthConfig.hashCode.

type SessionParamsIkeAuthDigitalSignLocalConfig

type SessionParamsIkeAuthDigitalSignLocalConfig struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SessionParamsIkeAuthDigitalSignLocalConfig wraps android.net.ipsec.ike.IkeSessionParams$IkeAuthDigitalSignLocalConfig.

func (*SessionParamsIkeAuthDigitalSignLocalConfig) Equals

Equals calls android.net.ipsec.ike.IkeSessionParams$IkeAuthDigitalSignLocalConfig.equals.

func (*SessionParamsIkeAuthDigitalSignLocalConfig) GetClientEndCertificate

func (m *SessionParamsIkeAuthDigitalSignLocalConfig) GetClientEndCertificate() (*jni.Object, error)

GetClientEndCertificate calls android.net.ipsec.ike.IkeSessionParams$IkeAuthDigitalSignLocalConfig.getClientEndCertificate.

func (*SessionParamsIkeAuthDigitalSignLocalConfig) GetPrivateKey

GetPrivateKey calls android.net.ipsec.ike.IkeSessionParams$IkeAuthDigitalSignLocalConfig.getPrivateKey.

func (*SessionParamsIkeAuthDigitalSignLocalConfig) HashCode

HashCode calls android.net.ipsec.ike.IkeSessionParams$IkeAuthDigitalSignLocalConfig.hashCode.

type SessionParamsIkeAuthDigitalSignRemoteConfig

type SessionParamsIkeAuthDigitalSignRemoteConfig struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SessionParamsIkeAuthDigitalSignRemoteConfig wraps android.net.ipsec.ike.IkeSessionParams$IkeAuthDigitalSignRemoteConfig.

func (*SessionParamsIkeAuthDigitalSignRemoteConfig) Equals

Equals calls android.net.ipsec.ike.IkeSessionParams$IkeAuthDigitalSignRemoteConfig.equals.

func (*SessionParamsIkeAuthDigitalSignRemoteConfig) GetRemoteCaCert

GetRemoteCaCert calls android.net.ipsec.ike.IkeSessionParams$IkeAuthDigitalSignRemoteConfig.getRemoteCaCert.

func (*SessionParamsIkeAuthDigitalSignRemoteConfig) HashCode

HashCode calls android.net.ipsec.ike.IkeSessionParams$IkeAuthDigitalSignRemoteConfig.hashCode.

type SessionParamsIkeAuthEapConfig

type SessionParamsIkeAuthEapConfig struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SessionParamsIkeAuthEapConfig wraps android.net.ipsec.ike.IkeSessionParams$IkeAuthEapConfig.

func (*SessionParamsIkeAuthEapConfig) Equals

func (m *SessionParamsIkeAuthEapConfig) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeSessionParams$IkeAuthEapConfig.equals.

func (*SessionParamsIkeAuthEapConfig) GetEapConfig

func (m *SessionParamsIkeAuthEapConfig) GetEapConfig() (*jni.Object, error)

GetEapConfig calls android.net.ipsec.ike.IkeSessionParams$IkeAuthEapConfig.getEapConfig.

func (*SessionParamsIkeAuthEapConfig) HashCode

func (m *SessionParamsIkeAuthEapConfig) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeSessionParams$IkeAuthEapConfig.hashCode.

type SessionParamsIkeAuthPskConfig

type SessionParamsIkeAuthPskConfig struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

SessionParamsIkeAuthPskConfig wraps android.net.ipsec.ike.IkeSessionParams$IkeAuthPskConfig.

func (*SessionParamsIkeAuthPskConfig) Equals

func (m *SessionParamsIkeAuthPskConfig) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeSessionParams$IkeAuthPskConfig.equals.

func (*SessionParamsIkeAuthPskConfig) GetPsk

GetPsk calls android.net.ipsec.ike.IkeSessionParams$IkeAuthPskConfig.getPsk.

func (*SessionParamsIkeAuthPskConfig) HashCode

func (m *SessionParamsIkeAuthPskConfig) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeSessionParams$IkeAuthPskConfig.hashCode.

type TrafficSelector

type TrafficSelector struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

TrafficSelector wraps android.net.ipsec.ike.IkeTrafficSelector.

func NewTrafficSelector

func NewTrafficSelector(vm *jni.VM, arg0 int32, arg1 int32, arg2 *jni.Object, arg3 *jni.Object) (*TrafficSelector, error)

NewTrafficSelector creates a new android.net.ipsec.ike.IkeTrafficSelector instance.

func (*TrafficSelector) Equals

func (m *TrafficSelector) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeTrafficSelector.equals.

func (*TrafficSelector) HashCode

func (m *TrafficSelector) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeTrafficSelector.hashCode.

type TransportModeChildSessionParamsBuilder

type TransportModeChildSessionParamsBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

TransportModeChildSessionParamsBuilder wraps android.net.ipsec.ike.TransportModeChildSessionParams$Builder.

func (*TransportModeChildSessionParamsBuilder) AddChildSaProposal

func (m *TransportModeChildSessionParamsBuilder) AddChildSaProposal(arg0 *jni.Object) (*jni.Object, error)

AddChildSaProposal calls android.net.ipsec.ike.TransportModeChildSessionParams$Builder.addChildSaProposal.

func (*TransportModeChildSessionParamsBuilder) AddInboundTrafficSelectors

func (m *TransportModeChildSessionParamsBuilder) AddInboundTrafficSelectors(arg0 *jni.Object) (*jni.Object, error)

AddInboundTrafficSelectors calls android.net.ipsec.ike.TransportModeChildSessionParams$Builder.addInboundTrafficSelectors.

func (*TransportModeChildSessionParamsBuilder) AddOutboundTrafficSelectors

func (m *TransportModeChildSessionParamsBuilder) AddOutboundTrafficSelectors(arg0 *jni.Object) (*jni.Object, error)

AddOutboundTrafficSelectors calls android.net.ipsec.ike.TransportModeChildSessionParams$Builder.addOutboundTrafficSelectors.

func (*TransportModeChildSessionParamsBuilder) Build

Build calls android.net.ipsec.ike.TransportModeChildSessionParams$Builder.build.

func (*TransportModeChildSessionParamsBuilder) SetLifetimeSeconds

func (m *TransportModeChildSessionParamsBuilder) SetLifetimeSeconds(arg0 int32, arg1 int32) (*jni.Object, error)

SetLifetimeSeconds calls android.net.ipsec.ike.TransportModeChildSessionParams$Builder.setLifetimeSeconds.

type TunnelConnectionParams

type TunnelConnectionParams struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

TunnelConnectionParams wraps android.net.ipsec.ike.IkeTunnelConnectionParams.

func NewTunnelConnectionParams

func NewTunnelConnectionParams(vm *jni.VM, arg0 *jni.Object, arg1 *jni.Object) (*TunnelConnectionParams, error)

NewTunnelConnectionParams creates a new android.net.ipsec.ike.IkeTunnelConnectionParams instance.

func (*TunnelConnectionParams) Equals

func (m *TunnelConnectionParams) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.IkeTunnelConnectionParams.equals.

func (*TunnelConnectionParams) GetIkeSessionParams

func (m *TunnelConnectionParams) GetIkeSessionParams() (*jni.Object, error)

GetIkeSessionParams calls android.net.ipsec.ike.IkeTunnelConnectionParams.getIkeSessionParams.

func (*TunnelConnectionParams) GetTunnelModeChildSessionParams

func (m *TunnelConnectionParams) GetTunnelModeChildSessionParams() (*jni.Object, error)

GetTunnelModeChildSessionParams calls android.net.ipsec.ike.IkeTunnelConnectionParams.getTunnelModeChildSessionParams.

func (*TunnelConnectionParams) HashCode

func (m *TunnelConnectionParams) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.IkeTunnelConnectionParams.hashCode.

type TunnelModeChildSessionParams

type TunnelModeChildSessionParams struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

TunnelModeChildSessionParams wraps android.net.ipsec.ike.TunnelModeChildSessionParams.

func (*TunnelModeChildSessionParams) Equals

func (m *TunnelModeChildSessionParams) Equals(arg0 *jni.Object) (bool, error)

Equals calls android.net.ipsec.ike.TunnelModeChildSessionParams.equals.

func (*TunnelModeChildSessionParams) HashCode

func (m *TunnelModeChildSessionParams) HashCode() (int32, error)

HashCode calls android.net.ipsec.ike.TunnelModeChildSessionParams.hashCode.

type TunnelModeChildSessionParamsBuilder

type TunnelModeChildSessionParamsBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

TunnelModeChildSessionParamsBuilder wraps android.net.ipsec.ike.TunnelModeChildSessionParams$Builder.

func (*TunnelModeChildSessionParamsBuilder) AddChildSaProposal

func (m *TunnelModeChildSessionParamsBuilder) AddChildSaProposal(arg0 *jni.Object) (*jni.Object, error)

AddChildSaProposal calls android.net.ipsec.ike.TunnelModeChildSessionParams$Builder.addChildSaProposal.

func (*TunnelModeChildSessionParamsBuilder) AddInboundTrafficSelectors

func (m *TunnelModeChildSessionParamsBuilder) AddInboundTrafficSelectors(arg0 *jni.Object) (*jni.Object, error)

AddInboundTrafficSelectors calls android.net.ipsec.ike.TunnelModeChildSessionParams$Builder.addInboundTrafficSelectors.

func (*TunnelModeChildSessionParamsBuilder) AddInternalAddressRequest1

func (m *TunnelModeChildSessionParamsBuilder) AddInternalAddressRequest1(arg0 int32) (*jni.Object, error)

AddInternalAddressRequest1 calls android.net.ipsec.ike.TunnelModeChildSessionParams$Builder.addInternalAddressRequest.

func (*TunnelModeChildSessionParamsBuilder) AddInternalAddressRequest1_1

func (m *TunnelModeChildSessionParamsBuilder) AddInternalAddressRequest1_1(arg0 *jni.Object) (*jni.Object, error)

AddInternalAddressRequest1_1 calls android.net.ipsec.ike.TunnelModeChildSessionParams$Builder.addInternalAddressRequest.

func (*TunnelModeChildSessionParamsBuilder) AddInternalAddressRequest2_2

func (m *TunnelModeChildSessionParamsBuilder) AddInternalAddressRequest2_2(arg0 *jni.Object, arg1 int32) (*jni.Object, error)

AddInternalAddressRequest2_2 calls android.net.ipsec.ike.TunnelModeChildSessionParams$Builder.addInternalAddressRequest.

func (*TunnelModeChildSessionParamsBuilder) AddInternalDhcpServerRequest

func (m *TunnelModeChildSessionParamsBuilder) AddInternalDhcpServerRequest(arg0 int32) (*jni.Object, error)

AddInternalDhcpServerRequest calls android.net.ipsec.ike.TunnelModeChildSessionParams$Builder.addInternalDhcpServerRequest.

func (*TunnelModeChildSessionParamsBuilder) AddInternalDnsServerRequest

func (m *TunnelModeChildSessionParamsBuilder) AddInternalDnsServerRequest(arg0 int32) (*jni.Object, error)

AddInternalDnsServerRequest calls android.net.ipsec.ike.TunnelModeChildSessionParams$Builder.addInternalDnsServerRequest.

func (*TunnelModeChildSessionParamsBuilder) AddOutboundTrafficSelectors

func (m *TunnelModeChildSessionParamsBuilder) AddOutboundTrafficSelectors(arg0 *jni.Object) (*jni.Object, error)

AddOutboundTrafficSelectors calls android.net.ipsec.ike.TunnelModeChildSessionParams$Builder.addOutboundTrafficSelectors.

func (*TunnelModeChildSessionParamsBuilder) Build

Build calls android.net.ipsec.ike.TunnelModeChildSessionParams$Builder.build.

func (*TunnelModeChildSessionParamsBuilder) SetLifetimeSeconds

func (m *TunnelModeChildSessionParamsBuilder) SetLifetimeSeconds(arg0 int32, arg1 int32) (*jni.Object, error)

SetLifetimeSeconds calls android.net.ipsec.ike.TunnelModeChildSessionParams$Builder.setLifetimeSeconds.

type TunnelModeChildSessionParamsConfigRequestIpv4Address

type TunnelModeChildSessionParamsConfigRequestIpv4Address struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

TunnelModeChildSessionParamsConfigRequestIpv4Address wraps android.net.ipsec.ike.TunnelModeChildSessionParams$ConfigRequestIpv4Address.

func (*TunnelModeChildSessionParamsConfigRequestIpv4Address) GetAddress

GetAddress calls android.net.ipsec.ike.TunnelModeChildSessionParams$ConfigRequestIpv4Address.getAddress.

type TunnelModeChildSessionParamsConfigRequestIpv6Address

type TunnelModeChildSessionParamsConfigRequestIpv6Address struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

TunnelModeChildSessionParamsConfigRequestIpv6Address wraps android.net.ipsec.ike.TunnelModeChildSessionParams$ConfigRequestIpv6Address.

func (*TunnelModeChildSessionParamsConfigRequestIpv6Address) GetAddress

GetAddress calls android.net.ipsec.ike.TunnelModeChildSessionParams$ConfigRequestIpv6Address.getAddress.

func (*TunnelModeChildSessionParamsConfigRequestIpv6Address) GetPrefixLength

GetPrefixLength calls android.net.ipsec.ike.TunnelModeChildSessionParams$ConfigRequestIpv6Address.getPrefixLength.

Directories

Path Synopsis
Package exceptions provides Go bindings for android.net.ipsec.ike.exceptions.
Package exceptions provides Go bindings for android.net.ipsec.ike.exceptions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL