text stringlengths 3 1.18M |
|---|
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* $Date:
*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licens... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This prog... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Th... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/*
* Copyright (C) 2010 Just Objects B.V.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This progr... |
/**
*
*/
package com.vmware.array2d.io;
import java.util.Scanner;
import com.vmware.array2d.util.Array2DSpiralIterable;
import com.vmware.array2d.util.Array2DSpiralIterableMetaInfo;
/**
* The class demonstrates the usage of SpirallyIteratable2DArray.
* @author anshuman
*
*/
public class TstFeastForSpirall... |
/**
*
*/
package com.vmware.array2d.util;
import java.util.Iterator;
/**
* Implementation for 2DArray class which can be iterated spirally.
* @author anshuman
*
*/
public class Array2DSpiralIterable<T> implements Iterable<T> {
private T[][] array2d;
/**
* @param array2d
* @param rows
... |
/**
*
*/
package com.vmware.array2d.util;
import java.util.Iterator;
/**
* Spriral iterator for a 2DArray
*
* @author anshuman
*
*/
public class SpriralIterator<T> implements Iterator<T> {
// Spiral iteration required traversing right, down, left and up direction
enum directions {
right, dow... |
/**
*
*/
package com.vmware.array2d.util;
/**
* MetaData Information class for Array2DSpiralIterable
*
* @author anshuman
*
*/
public class Array2DSpiralIterableMetaInfo {
private int rows; // rows#
private int cols; // cols#
/**
* @param rows
* @param cols
*/
public Array2DS... |
package com.nav4fjnu.model;
import java.io.File;
import java.util.ArrayList;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
public class DatabaseClient
{
private SQLiteDatabase myDatabase = null;
public SQLiteDatabase getMyDatabase()
{
return myDatabase;
}
pu... |
package com.nav4fjnu.model;
public class Site {
String siteno = "";
String sitename = "";
Double latitude = 0.000000;
Double longidute = 0.000000;
String detail = "";
public String getSiteno()
{
return siteno;
}
public String getSitename()
{
return sitename;
}
public Double... |
package team1.project2.vmlogs;
public class VMLogsConstants {
public static final String KERNEL_LOGS = "KERNEL_LOGS";
public static final String SYS_LOGS = "SYS_LOGS";
public static final String KERNEL_WARNINGS = "KERNEL_WARNINGS";
public static final String HOSTD_LOGS = "HOSTD_LOGS";
}
|
package team1.project2.vmlogs;
import java.sql.BatchUpdateException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.Timestamp;
import java.util.List;
/**
*
* @author Deepali Pawar
*
... |
package team1.project2.vmlogs;
import java.util.Date;
public class KernelMessage {
/*
*
* Nov 30 16:04:17 esx04 vmkernel: 28:02:20:33.356 cpu4:1586)StorageMonitor: 196: vmhba2:0:0:0 status = 0/7 0x0 0x0 0x0
Nov 30 16:04:17 = Date and time
esx04 = server name
vmkernel: = logging type
... |
package team1.project2.vmlogs;
import java.io.File;
import java.io.FileNotFoundException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import org.apache.log4j.Logger;
public class LogsProcessor {
Logger log = Logger.getLogger(LogsProcesso... |
package team1.project2.vmlogs;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class VmlogsUtils {
public static SimpleDateFormat f = new ... |
package team1.project2.vmlogs;
import java.sql.Connection;
import java.sql.DriverManager;
/**
*
* @author Pawar Deepali
*
*/
public class NormalisedConnection {
public static Connection getConnection() throws Exception {
String driver = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://loc... |
package team1.project2.vmlogs;
import java.text.ParseException;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class LineProcessor {
public static final String SYS_LOG_REGEX = "[0-9]{4}-([0][0-9]|[1][0-2])-([0][0-9]|[1][0-9]|[2][0-9]|[3][0-1])\\w{3}:[0-9]{... |
package team1.project2.vmlogs;
import java.util.Date;
public class SysMessage {
private Date dateTime;
private String event;
public Date getDateTime() {
return this.dateTime;
}
public void setDateTime(Date dateTime) {
this.dateTime = dateTime;
}
public String getEvent() {
return th... |
package team1.project2.metrics;
public class Counter {
int counterId;
String name;
String unit;
long sample1;
long sample2;
long sample3;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUnit() {
return unit;
}
... |
package team1.project2.metrics;
public class VMKernelLogs {
private String date_time;
private String host_uptime;
private String cpuName;
private String Wid;
private String code_reporting_message;
private String lineNum;
private String messageContent;
public String getDate_time() {
return date_... |
package team1.project2.metrics;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Vector;
import team1.project2.vmlogs.NormalisedConnection;
public class LogDAO {
NormalisedConnection conn = new NormalisedConnection();
pu... |
package team1.project2.metrics;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONO... |
package team1.project2.metrics;
import java.util.Date;
public class KeywordSearch {
private String timeStamp;
private int noOfOccurences;
public int getNoOfOccurences() {
return noOfOccurences;
}
public String getTimeStamp() {
return timeStamp;
}
public void setTimeStamp(String timeStamp) {... |
package team1.project2.metrics;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
@Path ("/helloworld")
public class HelloWorldResource {
@GET
@Produces ("text/plain")
public String sayHello() {
return "Hello World";
}
}
|
package team1.project2.metrics;
public class LineSearch {
private String date_time;
private String line;
public String getDate_time() {
return date_time;
}
public void setDate_time(String date_time) {
this.date_time = date_time;
}
public String getLine() {
return line;
}
public void set... |
package team1.project2.metrics.testcases;
import static org.junit.Assert.assertNotNull;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import org.junit.After;
impor... |
package team1.project2.metrics;
import java.util.ArrayList;
import java.util.Date;
public class Metrics {
Date sampleTime;
int interval;
ArrayList<Counter> counterList = new ArrayList<Counter>();
public ArrayList<Counter> getCounter() {
return counterList;
}
public void setCounter(Counter co... |
package team1.project2.metrics;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.Properties;
import java.util.Vector;
i... |
package com.example.team1metricsclient;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.codehaus.j... |
package com.example.team1metricsclient;
import com.vaadin.Application;
import com.vaadin.ui.*;
public class Team1metricsclientApplication extends Application {
private static final long serialVersionUID = -1044216956714191840L;
MainLayout ml = null;
@Override
public void init() {
ml = new MainLayout();
Win... |
package security.Authorization.Permission;
import security.Authentication.Base.IdentifiedUser;
import security.Authentication.Base.UnknownUser;
import security.Authentication.Base.User;
import security.Authorization.Base.AuthorizationHandler;
import security.Authorization.Base.AuthorizationLevel;
public class... |
package security.Authorization.UserRole;
import security.Authentication.Base.IdentifiedUser;
import security.Authentication.Base.UnknownUser;
import security.Authentication.Base.User;
import security.Authorization.Base.AuthorizationHandler;
import security.Authorization.Base.AuthorizationLevel;
public class U... |
package security.Authorization.Base;
public enum AuthorizationLevel {
NONE,
GUEST,
USER,
ADMIN
}
|
package security.Authorization.Base;
import security.Authentication.Base.User;
public interface AuthorizationHandler {
public void authorize(User user);
}
|
package security.Authentication.Test;
import static org.junit.Assert.*;
import java.net.InetAddress;
import java.net.UnknownHostException;
import security.Authentication.Base.AuthenticationChain;
import security.Authentication.Base.AuthenticationHandler;
import security.Authentication.Base.IdentifiedUser;
... |
package security.Authentication.Unknown;
import java.net.InetAddress;
import security.Authentication.Base.AuthenticationRequest;
/**
* Unknown request for the authentication handlers
* @author Andreas Carmvall
*/
public class UnknownRequest extends AuthenticationRequest {
/**
* Class constructor
... |
package security.Authentication.Encrypted;
import java.net.InetAddress;
import java.security.GeneralSecurityException;
import java.security.MessageDigest;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import security.Authentication.Base.AuthenticationRequest;
/**
* Request with en... |
package security.Authentication.Encrypted;
import java.security.GeneralSecurityException;
import java.security.MessageDigest;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import security.Authentication.Base.AuthenticationRequest;
import security.Authentication.Base.User;
import secur... |
package security.Authentication.Guest;
import java.net.InetAddress;
import security.Authentication.Base.AuthenticationRequest;
/**
* Empty request, no data needed for a guest login
* @author Andreas Carmvall
*/
public class GuestRequest extends AuthenticationRequest {
/**
* Class constructor
*... |
package security.Authentication.Guest;
import security.Authentication.Base.AuthenticationHandler;
import security.Authentication.Base.AuthenticationRequest;
import security.Authentication.Base.IdentifiedUser;
import security.Authentication.Base.User;
import security.Authorization.Base.AuthorizationLevel;
/*... |
package security.Authentication.UserPass;
import security.Authentication.Base.AuthenticationHandler;
import security.Authentication.Base.AuthenticationRequest;
import security.Authentication.Base.IdentifiedUser;
import security.Authentication.Base.UnknownUser;
import security.Authentication.Base.User;
import se... |
package security.Authentication.UserPass;
import java.net.InetAddress;
import security.Authentication.Base.AuthenticationRequest;
/**
* Request with user name and password
* @author Andreas Carmvall
*/
public class UserPassRequest extends AuthenticationRequest {
/**
* The user name
*/
privat... |
package security.Authentication.StaticData;
import security.Authorization.Base.AuthorizationLevel;
/**
* Data class for a user in the static authentication data
* @author Andreas Carmvall
*/
public class UserData {
/**
* The user password
*/
private String password;
/**
* The user auth... |
package security.Authentication.StaticData;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import security.Authorization.Base.AuthorizationLevel;
/**
* Have static information about users with their password
* @author Andreas Carmvall
*/
public class StaticUserPassInfo {... |
package security.Authentication.Base;
/**
* Interface of a user
* @author Andreas Carmvall
*/
public interface User {
}
|
package security.Authentication.Base;
/**
* Data of a unknown user
* @author Andreas Carmvall
*/
public class UnknownUser implements User {
/**
* Why the user was not identified
*/
private String cause;
/**
* If the user was denied
*/
private Boolean denied;
/**
* Class constr... |
package security.Authentication.Base;
import security.Authorization.Base.AuthorizationLevel;
/**
* Data of a identified user
* @author Andreas Carmvall
*/
public class IdentifiedUser implements User {
/**
* The level that this user can access
*/
AuthorizationLevel level;
/**
* Class con... |
package security.Authentication.Base;
/**
* Head of an authentication handler chain
* @author Andreas Carmvall
*/
public class AuthenticationChain extends AuthenticationHandler {
/**
* The last handler in the chain
*/
private AuthenticationHandler lastHandler = null;
/**
* Add handler to th... |
package security.Authentication.Base;
/**
* Interface for authentication handler by using the pattern chain of
* responsibility
* @author Andreas Carmvall
*/
public abstract class AuthenticationHandler {
/**
* The next handler in the chain
*/
protected AuthenticationHandler next;
/**
* P... |
package security.Authentication.Base;
import java.net.InetAddress;
/**
* Interface for an authentication request
* @author Andreas Carmvall
*/
public abstract class AuthenticationRequest {
/**
* The IP-address from where the request was sent
*/
private InetAddress address;
/**
* Class c... |
package security.IntrusionDetection.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.net.InetAddress;
import java.net.UnknownHostException;
import org.junit.Test;
import security.Authentication.Base.AuthenticationChain;
import security.Au... |
package security.IntrusionDetection.BruteforceIntrusion;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import security.Authentication.Base.AuthenticationRequest;
import security.Authentication.Base.IdentifiedUser;
import security.Authentication.Base.UnknownUser;
import security.Authentication... |
package security.IntrusionDetection.BruteforceIntrusion;
import java.util.Date;
public class UserAccountSecurityMeasures {
private int nrOfAttempts;
private Date timeStamp;
public UserAccountSecurityMeasures()
{
timeStamp = null;
nrOfAttempts = 1;
}
public void setTimeStamp(Date dt){timeStamp = dt;}
... |
package security.IntrusionDetection.IPInstrusion;
import java.io.FileNotFoundException;
import java.util.Scanner;
import security.Authentication.Base.AuthenticationRequest;
import security.IntrusionDetection.Base.Email;
import security.IntrusionDetection.Base.IntrusionDetection;
/**
* Class will detect an unusual i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.