rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if (delay < 0) throw new IllegalArgumentException("delay less than 0");
public void setDelay(int delay) { this.delay = delay; }
popupMenu.setLocation(x, y);
menuLocation = new Point(x, y);
public void setMenuLocation(int x, int y) { popupMenu.setLocation(x, y); }
if (isEnabled())
if (getModel().isEnabled())
public void setPopupMenuVisible(boolean popup) { if (isEnabled()) popupMenu.setVisible(popup); }
super.setSelected(selected);
super.setArmed(true); fireMenuSelected();
public void setSelected(boolean selected) { super.setSelected(selected); }
{
private EMSA_PKCS1_V1_5(final IMessageDigest hash) { super(); this.hash = hash; hLen = hash.hashSize(); final String name = hash.name(); if (name.equals(Registry.MD2_HASH)) { prefix = MD2_PREFIX; } else if (name.equals(Registry.MD5_HASH)) { prefix = MD5_PREFIX; } ...
}
private EMSA_PKCS1_V1_5(final IMessageDigest hash) { super(); this.hash = hash; hLen = hash.hashSize(); final String name = hash.name(); if (name.equals(Registry.MD2_HASH)) { prefix = MD2_PREFIX; } else if (name.equals(Registry.MD5_HASH)) { prefix = MD5_PREFIX; } ...
{
public byte[] encode(final byte[] mHash, final int emLen) { // 1. Apply the hash function to the message M to produce a hash value // H: H = Hash(M). // If the hash function outputs "message too long," output "message // too long" and stop. // 2. Encode the algorithm ID for the hash function ...
}
public byte[] encode(final byte[] mHash, final int emLen) { // 1. Apply the hash function to the message M to produce a hash value // H: H = Hash(M). // If the hash function outputs "message too long," output "message // too long" and stop. // 2. Encode the algorithm ID for the hash function ...
|| name.equals(Registry.SHA384_HASH) || name.equals(Registry.SHA512_HASH))) {
|| name.equals(Registry.SHA384_HASH) || name.equals(Registry.SHA512_HASH)))
public static final EMSA_PKCS1_V1_5 getInstance(final String mdName) { final IMessageDigest hash = HashFactory.getInstance(mdName); final String name = hash.name(); if (!(name.equals(Registry.MD2_HASH) || name.equals(Registry.MD5_HASH) || name.equals(Registry.SHA160_HASH) || name.equals(Re...
}
public static final EMSA_PKCS1_V1_5 getInstance(final String mdName) { final IMessageDigest hash = HashFactory.getInstance(mdName); final String name = hash.name(); if (!(name.equals(Registry.MD2_HASH) || name.equals(Registry.MD5_HASH) || name.equals(Registry.SHA160_HASH) || name.equals(Re...
InvalidKeySpecException y = new InvalidKeySpecException(); y.initCause(x); throw y;
throw new InvalidKeySpecException(x.getMessage(), x);
protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPrivateKeySpec) { DSAPrivateKeySpec spec = (DSAPrivateKeySpec) keySpec; BigInteger p = spec.getP(); BigInteger q = spec.getQ(); BigInteger g = spec.getG(); ...
InvalidKeySpecException y = new InvalidKeySpecException(); y.initCause(x); throw y;
throw new InvalidKeySpecException(x.getMessage(), x);
protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException { if (keySpec instanceof DSAPublicKeySpec) { DSAPublicKeySpec spec = (DSAPublicKeySpec) keySpec; BigInteger p = spec.getP(); BigInteger q = spec.getQ(); BigInteger g = spec.getG(); ...
throw new BAD_OPERATION("Naming context expected");
BAD_OPERATION bad = new BAD_OPERATION("Naming context expected"); bad.initCause(ex); throw bad;
public static NamingContext extract(Any a) { try { return ((NamingContextHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Naming context expected"); } }
return 0;
return 255;
public final int getAlpha(int pixel) { if (!hasAlpha()) return 0; return extractAndScaleSample(pixel, 3); }
int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied,
int[] colorMaskArray, int alphaMask, boolean isAlphaPremultiplied,
public PackedColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transparency, int transferType) { this(cspace, pixelBits, makeColorMaskArray(rmask, gmask, bmask), amask, isAlphaPremultiplied, transparency, transferType); }
this(cspace, pixelBits, makeColorMaskArray(rmask, gmask, bmask), amask, isAlphaPremultiplied, transparency, transferType);
super(pixelBits, calcBitsPerComponent(colorMaskArray, alphaMask), cspace, (alphaMask != 0), isAlphaPremultiplied, transparency, transferType); initMasks(colorMaskArray, alphaMask); if ((pixelBits<1) || (pixelBits>32)) { throw new IllegalArgumentException("pixels per bits must be " + "in the range [1, 32]"); }
public PackedColorModel(ColorSpace cspace, int pixelBits, int rmask, int gmask, int bmask, int amask, boolean isAlphaPremultiplied, int transparency, int transferType) { this(cspace, pixelBits, makeColorMaskArray(rmask, gmask, bmask), amask, isAlphaPremultiplied, transparency, transferType); }
&& comp.isFocusTraversable ())
&& (comp.isFocusTraversable () || comp.isFocusable()))
protected boolean accept (Component comp) { if (comp.visible && comp.isDisplayable () && comp.enabled) { if (comp.isFocusTraversableOverridden != 0 && comp.isFocusTraversable ()) return true; else { if (!(comp instanceof Canvas || comp instanceof Panel || comp instanceof Label || comp instan...
else {
protected boolean accept (Component comp) { if (comp.visible && comp.isDisplayable () && comp.enabled) { if (comp.isFocusTraversableOverridden != 0 && comp.isFocusTraversable ()) return true; else { if (!(comp instanceof Canvas || comp instanceof Panel || comp instanceof Label || comp instan...
}
protected boolean accept (Component comp) { if (comp.visible && comp.isDisplayable () && comp.enabled) { if (comp.isFocusTraversableOverridden != 0 && comp.isFocusTraversable ()) return true; else { if (!(comp instanceof Canvas || comp instanceof Panel || comp instanceof Label || comp instan...
checkPackageList(packageName, "access", "accessClassInPackage.");
checkPackageList(packageName, "package.access", "accessClassInPackage.");
public void checkPackageAccess(String packageName) { checkPackageList(packageName, "access", "accessClassInPackage."); }
checkPackageList(packageName, "definition", "defineClassInPackage.");
checkPackageList(packageName, "package.definition", "defineClassInPackage.");
public void checkPackageDefinition(String packageName) { checkPackageList(packageName, "definition", "defineClassInPackage."); }
void checkPackageList(String packageName, String restriction,
void checkPackageList(String packageName, final String restriction,
void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ...
Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if (list == null)
if (packageName == null) throw new NullPointerException(); String list = (String)AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return Security.getProperty(restriction); } }); if (list == null || list.equals(""))
void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ...
while (! "".equals(packageName)) { for (int index = list.indexOf(packageName); index != -1; index = list.indexOf(packageName, index + 1))
String packageNamePlusDot = packageName + "."; StringTokenizer st = new StringTokenizer(list, ","); while (st.hasMoreTokens())
void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ...
int packageNameCount = packageName.length(); if (index + packageNameCount == list.length() || list.charAt(index + packageNameCount) == ',')
if (packageNamePlusDot.startsWith(st.nextToken()))
void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ...
int index = packageName.lastIndexOf('.'); packageName = index < 0 ? "" : packageName.substring(0, index); }
void checkPackageList(String packageName, String restriction, String permission) { // Use the toString() hack to do the null check. Permission p = new RuntimePermission(permission + packageName.toString()); String list = Security.getProperty("package." + restriction); if ...
public DragSourceContext(DragSourceContextPeer peer, DragGestureEvent dge, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl)
public DragSourceContext (DragSourceContextPeer peer, DragGestureEvent trigger, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl)
public DragSourceContext(DragSourceContextPeer peer, DragGestureEvent dge, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) { }
if (peer == null || trigger == null) throw new NullPointerException (); if (trigger.getComponent () == null || trigger.getDragSource () == null || trigger.getDragAction () == DnDConstants.ACTION_NONE || trigger.getSourceAsDragGestureRecognizer () .getSourceActions () == DnDConstants.ACTION_NONE) throw new IllegalArgum...
public DragSourceContext(DragSourceContextPeer peer, DragGestureEvent dge, Cursor cursor, Image image, Point offset, Transferable trans, DragSourceListener dsl) { }
public void addDragSourceListener(DragSourceListener l)
public void addDragSourceListener (DragSourceListener dsl)
public void addDragSourceListener(DragSourceListener l) throws TooManyListenersException { }
if (dragSourceListener != null) throw new TooManyListenersException (); dragSourceListener = dsl;
public void addDragSourceListener(DragSourceListener l) throws TooManyListenersException { }
return null;
return trigger.getComponent ();
public Component getComponent() { return null; }
return null;
return cursor;
public Cursor getCursor() { return null; }
return null;
return trigger.getDragSource ();
public DragSource getDragSource() { return null; }
return 0;
return trigger.getSourceAsDragGestureRecognizer ().getSourceActions ();
public int getSourceActions() { return 0; }
return null;
return transferable;
public Transferable getTransferable() { return null; }
return null;
return trigger;
public DragGestureEvent getTrigger() { return null; }
public void removeDragSourceListener(DragSourceListener l)
public void removeDragSourceListener (DragSourceListener dsl)
public void removeDragSourceListener(DragSourceListener l) { }
if (dragSourceListener == dsl) dragSourceListener = null;
public void removeDragSourceListener(DragSourceListener l) { }
public void setCursor(Cursor c)
public void setCursor (Cursor cursor)
public void setCursor(Cursor c) { }
this.cursor = cursor;
public void setCursor(Cursor c) { }
return document.getText(elt.getStartOffset(), elt.getEndOffset());
return document.getText(elt.getStartOffset(), elt.getEndOffset() - elt.getStartOffset());
protected String getText(Element elt) throws BadLocationException { if (! elt.isLeaf()) throw new BadLocationException("Element is not a leaf", elt.getStartOffset()); return document.getText(elt.getStartOffset(), elt.getEndOffset()); }
int i;
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c...
if (path.length > selectedPath.size())
for (int i = 0; i < minSize; i++)
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c...
minSize = selectedPath.size(); for (i = selectedPath.size(); i < path.length; i++) { selectedPath.add(path[i]); path[i].menuSelectionChanged(true); }
if (i < currentSize && (MenuElement) selectedPath.get(i) == path[i]) firstDiff++; else break;
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c...
else if (path.length < selectedPath.size())
for (int i = currentSize - 1; i >= firstDiff; i--)
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c...
for (i = selectedPath.size() - 1; i >= path.length; i--) { ((MenuElement) selectedPath.get(i)).menuSelectionChanged(false);
MenuElement el = (MenuElement) selectedPath.get(i);
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c...
minSize = path.length; } MenuElement oldSelectedItem; for (i = minSize - 1; i >= 0; i--)
for (int i = firstDiff; i < minSize; i++)
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c...
oldSelectedItem = (MenuElement) selectedPath.get(i); if ((i + 1) < path.length && path[i + 1].equals(oldSelectedItem)) break; oldSelectedItem.menuSelectionChanged(false);
if (path[i] != null) { selectedPath.add(path[i]);
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c...
selectedPath.setElementAt(path[i], i);
}
public void setSelectedPath(MenuElement[] path) { if (path == null) { clearSelectedPath(); return; } int i; int minSize = path.length; // size of the smaller path. if (path.length > selectedPath.size()) { minSize = selectedPath.size(); // if new selected path contains more elements then c...
ifname = null; scope_ifname_set = scope_id_set = false; scope_id = 0; nif = null;
Inet6Address(byte[] addr, String host) { super(addr, host); // Super constructor clones the addr. Get a reference to the clone. this.ipaddress = this.addr; }
return super.equals(obj);
Inet6Address ip = (Inet6Address)obj; if (ipaddress.length != ip.ipaddress.length) return false; for (int i = 0; i < ip.ipaddress.length; i++) if (ipaddress[i] != ip.ipaddress[i]) return false; if( ip.nif != null && nif != null ) return nif.equals( ip.nif ); if( ip.nif != nif ) return false; if( ip.scope_id_set != sco...
public boolean equals(Object obj) { if (! (obj instanceof Inet6Address)) return false; // this.ipaddress is never set in this class except to // the value of the super class' addr. The super classes // equals(Object) will do the compare. return super.equals(obj); }
if( nif != null ) sbuf.append( "%" + nif.getName() ); else if( scope_id_set ) sbuf.append( "%" + scope_id );
public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); for (int i = 0; i < 16; i += 2) { int x = ((ipaddress[i] & 0xFF) << 8) | (ipaddress[i + 1] & 0xFF); if (i > 0) sbuf.append(':'); sbuf.append(Integer.toHexString(x)); } return sbuf.toString(); }
ports = rm.claimIOResource(device, basePort, SVGA_NUM_PORTS * 4);
ports = claimPorts(rm, device, basePort, SVGA_NUM_PORTS * 4);
public VMWareCore(VMWareDriver driver, PCIDevice device) throws ResourceNotFreeException, DriverException { super(640, 480); this.driver = driver; final int basePort; if (device.getConfig().getDeviceID() == PCI_DEVICE_ID_VMWARE_SVGA) { basePort = SVGA_LEGACY_BASE_PORT; this.indexPort = SVGA_LEGACY_BASE_PORT + ...
changeSupport = new SwingPropertyChangeSupport(this);
changeSupport = new PropertyChangeSupport(this);
protected AccessibleJComponent() { changeSupport = new SwingPropertyChangeSupport(this); }
public void addPropertyChangeListener(PropertyChangeListener listener)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
public void addPropertyChangeListener(PropertyChangeListener listener) { if (changeSupport == null) changeSupport = new SwingPropertyChangeSupport(this); changeSupport.addPropertyChangeListener(listener); }
if (changeSupport == null) changeSupport = new SwingPropertyChangeSupport(this); changeSupport.addPropertyChangeListener(listener);
listenerList.add(PropertyChangeListener.class, listener);
public void addPropertyChangeListener(PropertyChangeListener listener) { if (changeSupport == null) changeSupport = new SwingPropertyChangeSupport(this); changeSupport.addPropertyChangeListener(listener); }
if (newParent == null)
if (newParent == null || newParent instanceof Window)
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I...
if (newParent instanceof JComponent && ((JComponent) newParent).isOptimizedDrawingEnabled())
if ((newParent instanceof JComponent && ((JComponent) newParent).isOptimizedDrawingEnabled()))
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I...
Rectangle parRect = new Rectangle(0, 0, newParent.getWidth(), newParent.getHeight());
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I...
if (target.contains(parRect) || target.intersects(parRect)) { found = newParent; currentClip = target; parent = newParent; continue; } Component[] children = newParent.getComponents(); boolean skip = true; for (int i = children.length - 1; i >= 0; i--) { if (children[i] == parent) skip = false; if (skip) continue;...
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I...
break; } }
private Component findOverlapFreeParent(Rectangle clip) { Rectangle currentClip = clip; Component found = this; Container parent = this; while (parent != null && !(parent instanceof Window)) { Container newParent = parent.getParent(); if (newParent == null) break; // I...
if (changeSupport != null) changeSupport.firePropertyChange(propertyName, Boolean.valueOf(oldValue), Boolean.valueOf(newValue));
super.firePropertyChange(propertyName, oldValue, newValue);
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { if (changeSupport != null) changeSupport.firePropertyChange(propertyName, Boolean.valueOf(oldValue), Boolean.valueOf(newValue)); }
public void printBorder(Graphics g)
protected void printBorder(Graphics g)
public void printBorder(Graphics g) { paintBorder(g); }
public void printChildren(Graphics g)
protected void printChildren(Graphics g)
public void printChildren(Graphics g) { paintChildren(g); }
public void printComponent(Graphics g)
protected void printComponent(Graphics g)
public void printComponent(Graphics g) { paintComponent(g); }
protected ActivationGroup(ActivationGroupID groupID) throws RemoteException { throw new Error("Not implemented"); }
protected ActivationGroup(ActivationGroupID aGroupId) throws RemoteException { groupId = aGroupId; }
protected ActivationGroup(ActivationGroupID groupID) throws RemoteException { throw new Error("Not implemented");}
public static ActivationGroup createGroup(ActivationGroupID id, ActivationGroupDesc desc, long incarnation) throws ActivationException { throw new Error("Not implemented"); }
public static ActivationGroup createGroup(ActivationGroupID id, ActivationGroupDesc desc, long incarnation) throws ActivationException { if (system == null) system = id.system; ActivationGroup group = null; Class groupClass; if (desc.className != null) { try { ClassLoader loader = Thread.currentThread().getConte...
public static ActivationGroup createGroup(ActivationGroupID id, ActivationGroupDesc desc, long incarnation) throws ActivationException { throw new Error("Not implemented");}
public static ActivationSystem getSystem() throws ActivationException { throw new Error("Not implemented"); }
public static ActivationSystem getSystem() throws ActivationException { if (system == null) return DefaultActivationSystem.singleton; else return system; }
public static ActivationSystem getSystem() throws ActivationException { throw new Error("Not implemented");}
protected void inactiveGroup() throws UnknownGroupException, RemoteException { throw new Error("Not implemented"); }
protected void inactiveGroup() throws UnknownGroupException, RemoteException { if (monitor!=null) monitor.inactiveGroup(groupId, incarnation); if (currentGroupId!=null && currentGroupId.equals(groupId)) currentGroupId = null; }
protected void inactiveGroup() throws UnknownGroupException, RemoteException { throw new Error("Not implemented");}
public boolean inactiveObject(ActivationID id) throws ActivationException, UnknownObjectException, RemoteException { throw new Error("Not implemented"); }
public boolean inactiveObject(ActivationID id) throws ActivationException, UnknownObjectException, RemoteException { if (monitor != null) monitor.inactiveObject(id); return true; }
public boolean inactiveObject(ActivationID id) throws ActivationException, UnknownObjectException, RemoteException { throw new Error("Not implemented");}
public static void setSystem(ActivationSystem system) throws ActivationException { throw new Error("Not implemented"); }
public static void setSystem(ActivationSystem aSystem) throws ActivationException { if (currentGroupId!=null) throw new ActivationException("Group active"); else { try { system = aSystem; ActivationGroupDesc def = new ActivationGroupDesc( DefaultActivationGroup.class.getName(), "", null, null, null); currentGroupId = ...
public static void setSystem(ActivationSystem system) throws ActivationException { throw new Error("Not implemented");}
private int readLength() throws IOException
protected int readLength() throws IOException
private int readLength() throws IOException { int i = in.read(); if (i == -1) throw new EOFException(); encBuf.write(i); if ((i & ~0x7F) == 0) { return i; } else if (i < 0xFF) { byte[] octets = new byte[i & 0x7F]; in.read(octets); encBuf.write(octets); ...
os.writeInt (methods.length);
private void executeMethods(ByteBuffer bb, DataOutputStream os) throws JdwpException, IOException { ClassReferenceTypeId refId = (ClassReferenceTypeId) idMan.readReferenceTypeId(bb); Class clazz = refId.getType(); VMMethod[] methods = VMVirtualMachine.getAllClassMethods(clazz); for (int i = 0; i ...
&& Prime2.isProbablePrime(p) && p.gcd(e).equals(ONE)) {
&& p.isProbablePrime(80) && p.gcd(e).equals(ONE))
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =...
}
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =...
if (n.bitLength() == L && Prime2.isProbablePrime(q) && q.gcd(e).equals(ONE)) {
if (n.bitLength() == L && q.isProbablePrime(80) && q.gcd(e).equals(ONE))
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =...
if (Configuration.DEBUG)
public KeyPair generate() { log.entering(this.getClass().getName(), "generate"); BigInteger p, q, n, d; // 1. Generate a prime p in the interval [2**(M-1), 2**M - 1], where // M = CEILING(L/2), and such that GCD(p, e) = 1 int M = (L + 1) / 2; BigInteger lower = TWO.pow(M - 1); BigInteger upper =...
{
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param...
}
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param...
if (Configuration.DEBUG)
public void setup(Map attributes) { log.entering(this.getClass().getName(), "setup", attributes); // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of RSA params or we shall use our own? RSAKeyGenParameterSpec param...
public boolean grabPixels() throws InterruptedException {
public synchronized boolean grabPixels() throws InterruptedException {
public boolean grabPixels() throws InterruptedException { return grabPixels(0); }
jComponent.setHelpMenu(((SwingMenuPeer) helpMenu.getPeer()).jComponent);
jComponent.add(((SwingMenuPeer) helpMenu.getPeer()).jComponent);
public void addHelpMenu(Menu helpMenu) { helpMenu.addNotify(); jComponent.setHelpMenu(((SwingMenuPeer) helpMenu.getPeer()).jComponent); }
paintBorder = true;
borderPainted = true;
public JMenuBar() { selectionModel = new DefaultSingleSelectionModel(); paintBorder = true; updateUI(); }
public abstract void addHelpMenu(Menu menu);
void addHelpMenu(Menu menu);
public abstract void addHelpMenu(Menu menu);
public abstract void addMenu(Menu menu);
void addMenu(Menu menu);
public abstract void addMenu(Menu menu);
public abstract void delMenu(int index);
void delMenu(int index);
public abstract void delMenu(int index);
public static long UTC(int year, int month, int date, int hrs, int min, int sec) { Date d = new Date(year, month, date, hrs, min, sec); d.isGMT = true; return d.getTime();
public static long UTC(int year, int month, int date, int hrs, int min, int sec) { GregorianCalendar cal = new GregorianCalendar(year + 1900, month, date, hrs, min, sec); cal.set(Calendar.ZONE_OFFSET, 0); cal.set(Calendar.DST_OFFSET, 0); return cal.getTimeInMillis();
public static long UTC(int year, int month, int date, int hrs, int min, int sec) { Date d = new Date(year, month, date, hrs, min, sec); d.isGMT = true; return d.getTime(); }
public boolean after(Date when) { return getTime() > when.getTime();
public boolean after(Date when) { return time > when.time;
public boolean after(Date when) { return getTime() > when.getTime(); }
public boolean before(Date when) { return getTime() < when.getTime();
public boolean before(Date when) { return time < when.time;
public boolean before(Date when) { return getTime() < when.getTime(); }
public int getDate() { refresh_components(); return date; }
public int getDate() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.DATE); }
public int getDate() { refresh_components(); return date; }
public int getDay() { refresh_components(); return day; }
public int getDay() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.DAY_OF_WEEK) - 1; }
public int getDay() { refresh_components(); return day; }
public int getHours() { refresh_components(); return hrs; }
public int getHours() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.HOUR_OF_DAY); }
public int getHours() { refresh_components(); return hrs; }
public int getMinutes() { refresh_components(); return min; }
public int getMinutes() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.MINUTE); }
public int getMinutes() { refresh_components(); return min; }
public int getMonth() { refresh_components(); return month; }
public int getMonth() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.MONTH); }
public int getMonth() { refresh_components(); return month; }
public int getSeconds() { refresh_components(); return sec; }
public int getSeconds() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.SECOND); }
public int getSeconds() { refresh_components(); return sec; }
public int getTimezoneOffset() { if (isGMT) return 0; refresh_millis(); return timezone + (isdst ? 60 : 0); }
public int getTimezoneOffset() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return (cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET)) / (60 * 1000); }
public int getTimezoneOffset() { if (isGMT) return 0; refresh_millis(); return timezone + (isdst ? 60 : 0); }
public int getYear() { refresh_components(); return year; }
public int getYear() { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); return cal.get(Calendar.YEAR) - 1900; }
public int getYear() { refresh_components(); return year; }
public int hashCode() { refresh_millis(); return (int) (millis ^ (millis >>> 32)); }
public int hashCode() { return (int) time ^ (int) (time >>> 32); }
public int hashCode() { refresh_millis(); return (int) (millis ^ (millis >>> 32)); }
public synchronized static long parse(String string) { return new DateParser(string).parse(); }
public static long parse(String string) { int year = -1; int month = -1; int day = -1; int hour = -1; int minute = -1; int second = -1; int timezone = 0; boolean localTimezone = true; StringBuffer buf = new StringBuffer(); int parenNesting = 0; int len = string.length(); for (int i = 0; i < len; i++) { char ch = s...
public synchronized static long parse(String string) { return new DateParser(string).parse(); }
public void setDate(int date) { this.date = date; invalidate(); }
public void setDate(int date) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis(time); cal.set(Calendar.DATE, date); time = cal.getTimeInMillis(); }
public void setDate(int date) { this.date = date; invalidate(); }