Home
last modified time | relevance | path

Searched refs:authMethod (Results 1 – 6 of 6) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/
DIkeAuthPayload.java61 @AuthMethod public final int authMethod; field in IkeAuthPayload
63 protected IkeAuthPayload(boolean critical, int authMethod) { in IkeAuthPayload() argument
65 this.authMethod = authMethod; in IkeAuthPayload()
72 int authMethod = Byte.toUnsignedInt(inputBuffer.get()); in getIkeAuthPayload() local
79 switch (authMethod) { in getIkeAuthPayload()
117 byteBuffer.put((byte) authMethod).put(new byte[AUTH_RESERVED_FIELD_LEN]); in encodeToByteBuffer()
DIkeAuthDigitalSignPayload.java137 boolean critical, @AuthMethod int authMethod, byte[] authData) in IkeAuthDigitalSignPayload() argument
139 super(critical, authMethod); in IkeAuthDigitalSignPayload()
140 switch (authMethod) { in IkeAuthDigitalSignPayload()
290 if (authMethod == AUTH_METHOD_GENERIC_DIGITAL_SIGN) { in encodeAuthDataToByteBuffer()
299 if (authMethod == AUTH_METHOD_GENERIC_DIGITAL_SIGN) { in getAuthDataLength()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DIkeSessionParams.java715 IkeAuthConfig(@IkeAuthMethod int authMethod, @AuthDirection int authDirection) { in IkeAuthConfig() argument
716 mAuthMethod = authMethod; in IkeAuthConfig()
729 int authMethod = in.getInt(AUTH_METHOD_KEY); in fromPersistableBundle() local
730 switch (authMethod) { in fromPersistableBundle()
748 throw new IllegalArgumentException("Invalid Auth Method: " + authMethod); in fromPersistableBundle()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
DIkeAuthPayloadTest.java100 assertEquals(IkeAuthPayload.AUTH_METHOD_PRE_SHARED_KEY, payload.authMethod); in testDecodeIkeAuthPayload()
DIkeAuthPskPayloadTest.java93 assertEquals(IkeAuthPayload.AUTH_METHOD_PRE_SHARED_KEY, payload.authMethod); in testBuildOutboundIkeAuthPskPayload()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java3562 if (authPayload.authMethod != IkeAuthPayload.AUTH_METHOD_PRE_SHARED_KEY) { in authenticatePsk()
3566 + authPayload.authMethod); in authenticatePsk()
4002 "Unrecognized auth method: " + authPayload.authMethod)); in authenticate()
4012 if (authPayload.authMethod != IkeAuthPayload.AUTH_METHOD_RSA_DIGITAL_SIGN in authenticateDigitalSignature()
4013 && authPayload.authMethod != IkeAuthPayload.AUTH_METHOD_GENERIC_DIGITAL_SIGN) { in authenticateDigitalSignature()
4017 + authPayload.authMethod); in authenticateDigitalSignature()