blob: 15cdbb9029c5f5cd746ead4ac61657f1de4352ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package org.openslx.imagemaster.db.mappers;
import org.apache.log4j.Logger;
import org.openslx.imagemaster.db.MySQL;
public class DbPendingSatellite
{
private static final Logger LOG = Logger.getLogger( DbPendingSatellite.class );
public static boolean add( String organizationId, String address, String modulus, String exponent )
{
String publickey = "mod:" + modulus + " exp:" + exponent;
return MySQL.update( "INSERT INTO pending_satellite (dateline, organizationid, address, publickey)"
+ " VALUES (UNIX_TIMESTAMP(), ?, ?, ?)", organizationId, address, publickey ) != 0;
}
}
|