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.java143 boolean critical, @AuthMethod int authMethod, byte[] authData) in IkeAuthDigitalSignPayload() argument
145 super(critical, authMethod); in IkeAuthDigitalSignPayload()
146 switch (authMethod) { in IkeAuthDigitalSignPayload()
203 switch (authMethod) { in IkeAuthDigitalSignPayload()
211 throw new IllegalStateException("Invalid auth method: " + authMethod); in IkeAuthDigitalSignPayload()
327 if (authMethod == AUTH_METHOD_GENERIC_DIGITAL_SIGN) { in encodeAuthDataToByteBuffer()
336 if (authMethod == AUTH_METHOD_GENERIC_DIGITAL_SIGN) { in getAuthDataLength()
346 switch (authMethod) { in getTypeString()
/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/android/net/ipsec/ike/
DIkeSessionParams.java1073 IkeAuthConfig(@IkeAuthMethod int authMethod, @AuthDirection int authDirection) { in IkeAuthConfig() argument
1074 mAuthMethod = authMethod; in IkeAuthConfig()
1087 int authMethod = in.getInt(AUTH_METHOD_KEY); in fromPersistableBundle() local
1088 switch (authMethod) { in fromPersistableBundle()
1106 throw new IllegalArgumentException("Invalid Auth Method: " + authMethod); in fromPersistableBundle()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeSessionStateMachine.java3921 if (authPayload.authMethod != IkeAuthPayload.AUTH_METHOD_PRE_SHARED_KEY) { in authenticatePsk()
3925 + authPayload.authMethod); in authenticatePsk()
4418 "Unrecognized auth method: " + authPayload.authMethod)); in authenticate()
4428 if (authPayload.authMethod != IkeAuthPayload.AUTH_METHOD_RSA_DIGITAL_SIGN in authenticateDigitalSignature()
4429 && authPayload.authMethod != IkeAuthPayload.AUTH_METHOD_GENERIC_DIGITAL_SIGN) { in authenticateDigitalSignature()
4433 + authPayload.authMethod); in authenticateDigitalSignature()