use of net.java.slee.resource.diameter.s6a.events.AuthenticationInformationRequest in project jain-slee.diameter by RestComm.
the class S6aFactoriesTest method isRequestAIR.
@Test
public void isRequestAIR() throws Exception {
AuthenticationInformationRequest air = s6aMessageFactory.createAuthenticationInformationRequest();
assertTrue("Request Flag in Authentication-Information-Request is not set.", air.getHeader().isRequest());
}
use of net.java.slee.resource.diameter.s6a.events.AuthenticationInformationRequest in project jain-slee.diameter by RestComm.
the class S6aFactoriesTest method isProxiableAIR.
@Test
public void isProxiableAIR() throws Exception {
AuthenticationInformationRequest air = s6aMessageFactory.createAuthenticationInformationRequest();
assertTrue("The 'P' bit is not set by default in Authentication-Information-Request it should.", air.getHeader().isProxiable());
}
use of net.java.slee.resource.diameter.s6a.events.AuthenticationInformationRequest in project jain-slee.diameter by RestComm.
the class S6aFactoriesTest method testGettersAndSettersAIR.
@Test
public void testGettersAndSettersAIR() throws Exception {
AuthenticationInformationRequest air = s6aMessageFactory.createAuthenticationInformationRequest();
int nFailures = S6aAvpAssistant.INSTANCE.testMethods(air, AuthenticationInformationRequest.class);
assertEquals("Some methods have failed. See logs for more details.", 0, nFailures);
}
use of net.java.slee.resource.diameter.s6a.events.AuthenticationInformationRequest in project jain-slee.diameter by RestComm.
the class S6aMessageFactoryImpl method createAuthenticationInformationRequest.
public AuthenticationInformationRequest createAuthenticationInformationRequest(String sessionId) throws IllegalArgumentException {
AuthenticationInformationRequest uar = createAuthenticationInformationRequest();
uar.setSessionId(sessionId);
return uar;
}
use of net.java.slee.resource.diameter.s6a.events.AuthenticationInformationRequest in project jain-slee.diameter by RestComm.
the class S6aServerSessionImpl method createAuthenticationInformationAnswer.
public AuthenticationInformationAnswer createAuthenticationInformationAnswer() {
// Make sure we have the correct type of Request
if (!(lastRequest instanceof AuthenticationInformationRequest)) {
logger.warn("Invalid type of answer for this activity.");
return null;
}
try {
// Create the answer
AuthenticationInformationAnswer aia = (AuthenticationInformationAnswer) this.s6aMessageFactory.createS6aMessage(lastRequest.getHeader(), new DiameterAvp[] {}, AuthenticationInformationAnswer.COMMAND_CODE, s6aMessageFactory.getApplicationId());
// Fill session related AVPs, if present
fillSessionAVPs(aia);
return aia;
} catch (InternalException e) {
logger.error("Failed to create Authentication-Information-Answer.", e);
}
return null;
}
Aggregations