# Class IKEGateway

Class IKEGateway

  IKEGateway uses InterfaceType, XmlConvertible, PathableName, ReferenceableObject

Located at network-classes/IKEGateway.php

Methods summary
`public` | # `__construct( string $name, `IKEGatewayStore` $owner )` IKEGateway constructor. IKEGateway constructor. #### Parameters $name `string` $name $owner ``IKEGatewayStore`` $owner
`public` | # `load_from_domxml( `DOMElement` $xml )` #### Parameters $xml ``DOMElement`` $xml
`public boolean` | # `setName( string $name )` return true if change was successful false if not (duplicate rulename?) return true if change was successful false if not (duplicate rulename?) #### Parameters $name `string` $name new name for the rule #### Returns `boolean`
`public` | # `setproposal( mixed $proposal )`
`public` | # `setExchangeMode( mixed $mode )`
`public` | # `setinterface( mixed $interface, mixed $type = "ethernet" )`
`public` | # `setpeerAddress( mixed $peeraddress )`
`public` | # `setPreSharedKey( mixed $presharedkey )`
`public boolean` | # `API_setPreSharedKey( mixed $presharedkey )` #### Parameters $presharedkey `mixed` $newType string #### Returns `boolean` true if successful
`public` | # `isIKEGatewayType( )`
`public` | # `referencedObjectRenamed( mixed $h )`
`public` | # `rewriteInterface_XML( )`

Methods used from InterfaceType
`(), (), (), (), (), (), (), (), (), (), ()`

Methods used from XmlConvertible
`(), (), (), (), ()`

Methods used from PathableName
`(), (), ()`

Methods used from ReferenceableObject
`(), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ()`

Properties summary
`public null|string[]|`DOMElement`` | $typeRoot | `null` | #
`public string` | $type | `'notfound'` | #
`public string` | $preSharedKey | `''` | #
`public string` | $proposal | `''` | #
`public string` | $version | `''` | #
`public string` | $natTraversal | `''` | #
`public string` | $fragmentation | `''` | #
`public boolean` | $localAddress | `FALSE` | #
`public boolean` | $localInterface | `FALSE` | #
`public boolean` | $peerAddress | `FALSE` | #
`public boolean` | $localID | `FALSE` | #
`public boolean` | $peerID | `FALSE` | #
`public boolean` | $localIDtype | `FALSE` | #
`public boolean` | $peerIDtype | `FALSE` | #
`public string` | $disabled | `"no"` | #
`public string` | $exchangemode | `"auto"` | #
`public static string` | $templatexml | `'<entry name="**temporarynamechangeme**"> <authentication> <pre-shared-key> <key>-AQ==A4vEGnxsZCP7poqzjhJD4Gc+tbE=DS4xndFfZiigUHPCm4ASFQ==</key> </pre-shared-key> </authentication> <protocol> <ikev1><dpd><enable>yes</enable><interval>5</interval><retry>5</retry></dpd><ike-crypto-profile>default</ike-crypto-profile><exchange-mode>auto</exchange-mode></ikev1> <ikev2><dpd><enable>yes</enable><interval>5</interval></dpd><ike-crypto-profile>default</ike-crypto-profile></ikev2> <version>ikev1</version> </protocol> <protocol-common><nat-traversal><enable>no</enable></nat-traversal><fragmentation><enable>no</enable></fragmentation></protocol-common> <local-address><interface></interface></local-address> <peer-address><ip></ip></peer-address> <disabled>no</disabled> </entry>'` | #
`public static string` | $templatexml_ikev2 | `'<entry name="**temporarynamechangeme**"> <authentication> <pre-shared-key> <key>-AQ==A4vEGnxsZCP7poqzjhJD4Gc+tbE=DS4xndFfZiigUHPCm4ASFQ==</key> </pre-shared-key> </authentication> <protocol> <ikev1><dpd><enable>yes</enable><interval>5</interval><retry>5</retry></dpd><ike-crypto-profile>default</ike-crypto-profile><exchange-mode>auto</exchange-mode></ikev1> <ikev2><dpd><enable>yes</enable><interval>5</interval></dpd><ike-crypto-profile>default</ike-crypto-profile></ikev2> <version>ikev2</version> </protocol> <protocol-common><nat-traversal><enable>no</enable></nat-traversal><fragmentation><enable>no</enable></fragmentation></protocol-common> <local-address><interface></interface></local-address> <peer-address><ip></ip></peer-address> <disabled>no</disabled> </entry>'` | #

Properties used from InterfaceType
`$importedByVSYS`

Properties used from XmlConvertible
`$xmlroot`

Properties used from ReferenceableObject
`$name, $refcomphash, $refrules`

Magic properties summary
`public `IKEGatewayStore`` | $owner | #

Magic properties used from PathableName
`$name`