@Test(expected = NullPointerException.class) public void testCreateDeviceKeyUsingUsernamePasswordWithNull() { DeviceKey deviceKey = DeviceKey.createDeviceKeyUsingUsernamePassword(null, null, null, null); }
public static DeviceKey createDeviceKeyUsingUsernamePassword(DeviceKeyId id, String label, String username, String password) { DefaultAnnotations annotations = builder().set(AnnotationKeys.USERNAME, username) .set(AnnotationKeys.PASSWORD, password).build(); return new DeviceKey(id, label, Type.USERNAME_PASSWORD, annotations); }
DeviceKey extends AbstractAnnotated { public static DeviceKey createDeviceKeyUsingUsernamePassword(DeviceKeyId id, String label, String username, String password) { DefaultAnnotations annotations = builder().set(AnnotationKeys.USERNAME, username) .set(AnnotationKeys.PASSWORD, password).build(); return new DeviceKey(id, label, Type.USERNAME_PASSWORD, annotations); } }
DeviceKey extends AbstractAnnotated { public static DeviceKey createDeviceKeyUsingUsernamePassword(DeviceKeyId id, String label, String username, String password) { DefaultAnnotations annotations = builder().set(AnnotationKeys.USERNAME, username) .set(AnnotationKeys.PASSWORD, password).build(); return new DeviceKey(id, label, Type.USERNAME_PASSWORD, annotations); } DeviceKey(); private  DeviceKey(DeviceKeyId id, String label, Type type, Annotations... annotations); }
DeviceKey extends AbstractAnnotated { public static DeviceKey createDeviceKeyUsingUsernamePassword(DeviceKeyId id, String label, String username, String password) { DefaultAnnotations annotations = builder().set(AnnotationKeys.USERNAME, username) .set(AnnotationKeys.PASSWORD, password).build(); return new DeviceKey(id, label, Type.USERNAME_PASSWORD, annotations); } DeviceKey(); private  DeviceKey(DeviceKeyId id, String label, Type type, Annotations... annotations); DeviceKeyId deviceKeyId(); String label(); Type type(); static DeviceKey createDeviceKeyUsingCommunityName(DeviceKeyId id, String label, String name); CommunityName asCommunityName(); static DeviceKey createDeviceKeyUsingUsernamePassword(DeviceKeyId id, String label,
                                                                 String username, String password); UsernamePassword asUsernamePassword(); }
DeviceKey extends AbstractAnnotated { public static DeviceKey createDeviceKeyUsingUsernamePassword(DeviceKeyId id, String label, String username, String password) { DefaultAnnotations annotations = builder().set(AnnotationKeys.USERNAME, username) .set(AnnotationKeys.PASSWORD, password).build(); return new DeviceKey(id, label, Type.USERNAME_PASSWORD, annotations); } DeviceKey(); private  DeviceKey(DeviceKeyId id, String label, Type type, Annotations... annotations); DeviceKeyId deviceKeyId(); String label(); Type type(); static DeviceKey createDeviceKeyUsingCommunityName(DeviceKeyId id, String label, String name); CommunityName asCommunityName(); static DeviceKey createDeviceKeyUsingUsernamePassword(DeviceKeyId id, String label,
                                                                 String username, String password); UsernamePassword asUsernamePassword();  }