Home
last modified time | relevance | path

Searched refs:ikeId (Results 1 – 4 of 4) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeIdPayloadTest.java111 assertEquals(IkeIdentification.ID_TYPE_IPV4_ADDR, payload.ikeId.idType); in testDecodeIpv4AddrIdPayload()
112 IkeIpv4AddrIdentification ikeId = (IkeIpv4AddrIdentification) payload.ikeId; in testDecodeIpv4AddrIdPayload() local
114 assertEquals(expectedAddr, ikeId.ipv4Address); in testDecodeIpv4AddrIdPayload()
124 assertEquals(IkeIdentification.ID_TYPE_IPV6_ADDR, payload.ikeId.idType); in testDecodeIpv6AddrIdPayload()
125 IkeIpv6AddrIdentification ikeId = (IkeIpv6AddrIdentification) payload.ikeId; in testDecodeIpv6AddrIdPayload() local
127 assertEquals(expectedAddr, ikeId.ipv6Address); in testDecodeIpv6AddrIdPayload()
138 assertEquals(IkeIdentification.ID_TYPE_FQDN, payload.ikeId.idType); in testDecodeFqdnIdPayload()
139 IkeFqdnIdentification ikeId = (IkeFqdnIdentification) payload.ikeId; in testDecodeFqdnIdPayload() local
140 assertEquals(FQDN, ikeId.fqdn); in testDecodeFqdnIdPayload()
150 assertEquals(IkeIdentification.ID_TYPE_RFC822_ADDR, payload.ikeId.idType); in testDecodeRfc822AddrIdPayload()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeIdPayload.java50 public final IkeIdentification ikeId; field in IkeIdPayload
80 ikeId = new IkeIpv4AddrIdentification(idData); in IkeIdPayload()
83 ikeId = new IkeFqdnIdentification(idData); in IkeIdPayload()
86 ikeId = new IkeRfc822AddrIdentification(idData); in IkeIdPayload()
89 ikeId = new IkeIpv6AddrIdentification(idData); in IkeIdPayload()
92 ikeId = new IkeDerAsn1DnIdentification(idData); in IkeIdPayload()
95 ikeId = new IkeKeyIdIdentification(idData); in IkeIdPayload()
109 public IkeIdPayload(boolean isInitiator, IkeIdentification ikeId) { in IkeIdPayload() argument
111 this.ikeId = ikeId; in IkeIdPayload()
123 .put((byte) ikeId.idType) in getEncodedPayloadBody()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachineTest.java2374 private IkeIdPayload makeRespIdPayload(IkeIdentification ikeId) { in makeRespIdPayload() argument
2375 return new IkeIdPayload(false /* isInitiator */, ikeId); in makeRespIdPayload()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java3378 .equals(mRespIdPayload.ikeId)) { in validateIkeAuthResp()