bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetrics(); int charsCount = str.length(); if ((bdfFont != null) && (charsCount > 0)) { int offset = 0; char[] chars = str.toCharArray(); for(int i=0;i<charsCount;i++) { int base = fm.getDescent(); BDFGlyph glyph = bdfFont.getGlyph(chars[i]); if(glyph==null) { continue; } int fHeight= glyph.getBbx().height; int[] fData = glyph.getData(); int scan = fData.length/fHeight; for(int k=0;k<fHeight;k++) { for(int j=0;j<scan;j++) { int fPixel = fData[(k*scan)+j]; if(fPixel!=0) { int r = color.getRed(); //(color & 0x00FF0000) >> 16; int g = color.getGreen(); //(color & 0x0000FF00) >> 8; int b = color.getBlue(); //(color & 0x000000FF); r = ((r * fPixel)>>bdfFont.getDepth()) & 0xFF; g = ((g * fPixel)>>bdfFont.getDepth()) & 0xFF; b = ((b * fPixel)>>bdfFont.getDepth()) & 0xFF; fPixel = (((r << 16)+ (g << 8) + b )| 0xFF000000); int px = x+offset+j; int py = y+(bdfFont.getBoundingBox().height+base-fHeight)+k-glyph.getBbx().y; surface.setRGBPixel(px, py, fPixel); } } } offset+=glyph.getDWidth().width-glyph.getBbx().x; } } }
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetrics(); int charsCount = str.length(); if ((bdfFont != null) && (charsCount > 0)) { int offset = 0; char[] chars = str.toCharArray(); for(int i=0;i<charsCount;i++) { int base = fm.getDescent(); BDFGlyph glyph = bdfFont.getGlyph(chars[i]); if(glyph==null) { continue; } int fHeight= glyph.getBbx().height; int[] fData = glyph.getData(); int scan = fData.length/fHeight; for(int k=0;k<fHeight;k++) { for(int j=0;j<scan;j++) { int fPixel = fData[(k*scan)+j]; if(fPixel!=0) { int r = color.getRed(); //(color & 0x00FF0000) >> 16; int g = color.getGreen(); //(color & 0x0000FF00) >> 8; int b = color.getBlue(); //(color & 0x000000FF); r = ((r * fPixel)>>bdfFont.getDepth()) & 0xFF; g = ((g * fPixel)>>bdfFont.getDepth()) & 0xFF; b = ((b * fPixel)>>bdfFont.getDepth()) & 0xFF; fPixel = (((r << 16)+ (g << 8) + b )| 0xFF000000); int px = x+offset+j; int py = y+(bdfFont.getBoundingBox().height+base-fHeight)+k-glyph.getBbx().y; surface.setRGBPixel(px, py, fPixel); } } } offset+=glyph.getDWidth().width-glyph.getBbx().x; } } }
6,776
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetrics(); int charsCount = str.length(); if ((bdfFont != null) && (charsCount > 0)) { int offset = 0; char[] chars = str.toCharArray(); for(int i=0;i<charsCount;i++) { int base = fm.getDescent(); BDFGlyph glyph = bdfFont.getGlyph(chars[i]); if(glyph==null) { continue; } int fHeight= glyph.getBbx().height; int[] fData = glyph.getData(); int scan = fData.length/fHeight; for(int k=0;k<fHeight;k++) { for(int j=0;j<scan;j++) { int fPixel = fData[(k*scan)+j]; if(fPixel!=0) { int r = color.getRed(); //(color & 0x00FF0000) >> 16; int g = color.getGreen(); //(color & 0x0000FF00) >> 8; int b = color.getBlue(); //(color & 0x000000FF); r = ((r * fPixel)>>bdfFont.getDepth()) & 0xFF; g = ((g * fPixel)>>bdfFont.getDepth()) & 0xFF; b = ((b * fPixel)>>bdfFont.getDepth()) & 0xFF; fPixel = (((r << 16)+ (g << 8) + b )| 0xFF000000); int px = x+offset+j; int py = y+(bdfFont.getBoundingBox().height+base-fHeight)+k-glyph.getBbx().y; surface.setRGBPixel(px, py, fPixel); } } } offset+=glyph.getDWidth().width-glyph.getBbx().x; } } }
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetrics(); int charsCount = str.length(); if ((bdfFont != null) && (charsCount > 0)) { int offset = 0; char[] chars = str.toCharArray(); for(int i=0;i<charsCount;i++) { int base = fm.getDescent(); BDFGlyph glyph = bdfFont.getGlyph(chars[i]); if(glyph==null) { continue; } int fHeight= glyph.getBbx().height; int[] fData = glyph.getData(); int scan = fData.length/fHeight; for(int k=0;k<fHeight;k++) { for(int j=0;j<scan;j++) { int fPixel = fData[offsetLine+j]; if(fPixel!=0) { int r = color.getRed(); //(color & 0x00FF0000) >> 16; int g = color.getGreen(); //(color & 0x0000FF00) >> 8; int b = color.getBlue(); //(color & 0x000000FF); r = ((r * fPixel)>>bdfFont.getDepth()) & 0xFF; g = ((g * fPixel)>>bdfFont.getDepth()) & 0xFF; b = ((b * fPixel)>>bdfFont.getDepth()) & 0xFF; fPixel = (((r << 16)+ (g << 8) + b )| 0xFF000000); int px = x+offset+j; int py = y+(bdfFont.getBoundingBox().height+base-fHeight)+k-glyph.getBbx().y; surface.setRGBPixel(px, py, fPixel); } } } offset+=glyph.getDWidth().width-glyph.getBbx().x; } } }
6,777
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetrics(); int charsCount = str.length(); if ((bdfFont != null) && (charsCount > 0)) { int offset = 0; char[] chars = str.toCharArray(); for(int i=0;i<charsCount;i++) { int base = fm.getDescent(); BDFGlyph glyph = bdfFont.getGlyph(chars[i]); if(glyph==null) { continue; } int fHeight= glyph.getBbx().height; int[] fData = glyph.getData(); int scan = fData.length/fHeight; for(int k=0;k<fHeight;k++) { for(int j=0;j<scan;j++) { int fPixel = fData[(k*scan)+j]; if(fPixel!=0) { int r = color.getRed(); //(color & 0x00FF0000) >> 16; int g = color.getGreen(); //(color & 0x0000FF00) >> 8; int b = color.getBlue(); //(color & 0x000000FF); r = ((r * fPixel)>>bdfFont.getDepth()) & 0xFF; g = ((g * fPixel)>>bdfFont.getDepth()) & 0xFF; b = ((b * fPixel)>>bdfFont.getDepth()) & 0xFF; fPixel = (((r << 16)+ (g << 8) + b )| 0xFF000000); int px = x+offset+j; int py = y+(bdfFont.getBoundingBox().height+base-fHeight)+k-glyph.getBbx().y; surface.setRGBPixel(px, py, fPixel); } } } offset+=glyph.getDWidth().width-glyph.getBbx().x; } } }
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetrics(); int charsCount = str.length(); if ((bdfFont != null) && (charsCount > 0)) { int offset = 0; char[] chars = str.toCharArray(); for(int i=0;i<charsCount;i++) { int base = fm.getDescent(); BDFGlyph glyph = bdfFont.getGlyph(chars[i]); if(glyph==null) { continue; } int fHeight= glyph.getBbx().height; int[] fData = glyph.getData(); int scan = fData.length/fHeight; for(int k=0;k<fHeight;k++) { for(int j=0;j<scan;j++) { int fPixel = fData[(k*scan)+j]; if(fPixel!=0) { int r = color.getRed(); //(color & 0x00FF0000) >> 16; int g = color.getGreen(); //(color & 0x0000FF00) >> 8; int b = color.getBlue(); //(color & 0x000000FF); r = ((r * fPixel)>>bdfFont.getDepth()) & 0xFF; g = ((g * fPixel)>>bdfFont.getDepth()) & 0xFF; b = ((b * fPixel)>>bdfFont.getDepth()) & 0xFF; fPixel = (((r << 16)+ (g << 8) + b )| 0xFF000000); int px = x+offset+j; int py = y+(bdfFont.getBoundingBox().height+base-fHeight)+k-glyph.getBbx().y; surface.setRGBPixel(px, py, fPixel); } } } offset+=glyph.getDWidth().width-glyph.getBbx().x; } } }
6,778
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetrics(); int charsCount = str.length(); if ((bdfFont != null) && (charsCount > 0)) { int offset = 0; char[] chars = str.toCharArray(); for(int i=0;i<charsCount;i++) { int base = fm.getDescent(); BDFGlyph glyph = bdfFont.getGlyph(chars[i]); if(glyph==null) { continue; } int fHeight= glyph.getBbx().height; int[] fData = glyph.getData(); int scan = fData.length/fHeight; for(int k=0;k<fHeight;k++) { for(int j=0;j<scan;j++) { int fPixel = fData[(k*scan)+j]; if(fPixel!=0) { int r = color.getRed(); //(color & 0x00FF0000) >> 16; int g = color.getGreen(); //(color & 0x0000FF00) >> 8; int b = color.getBlue(); //(color & 0x000000FF); r = ((r * fPixel)>>bdfFont.getDepth()) & 0xFF; g = ((g * fPixel)>>bdfFont.getDepth()) & 0xFF; b = ((b * fPixel)>>bdfFont.getDepth()) & 0xFF; fPixel = (((r << 16)+ (g << 8) + b )| 0xFF000000); int px = x+offset+j; int py = y+(bdfFont.getBoundingBox().height+base-fHeight)+k-glyph.getBbx().y; surface.setRGBPixel(px, py, fPixel); } } } offset+=glyph.getDWidth().width-glyph.getBbx().x; } } }
final public void render(Surface surface, Shape clip, AffineTransform tx, String str, int x, int y, Color color) { if (str == null || str.length() == 0) { System.err.println("empty string!"); return; } BDFMetrics fm = (BDFMetrics)bdfFont.getFontMetrics(); int charsCount = str.length(); if ((bdfFont != null) && (charsCount > 0)) { int offset = 0; char[] chars = str.toCharArray(); for(int i=0;i<charsCount;i++) { int base = fm.getDescent(); BDFGlyph glyph = bdfFont.getGlyph(chars[i]); if(glyph==null) { continue; } int fHeight= glyph.getBbx().height; int[] fData = glyph.getData(); int scan = fData.length/fHeight; for(int k=0;k<fHeight;k++) { for(int j=0;j<scan;j++) { int fPixel = fData[(k*scan)+j]; if(fPixel!=0) { int r = color.getRed(); //(color & 0x00FF0000) >> 16; int g = color.getGreen(); //(color & 0x0000FF00) >> 8; int b = color.getBlue(); //(color & 0x000000FF); r = ((r * fPixel)>>bdfFont.getDepth()) & 0xFF; g = ((g * fPixel)>>bdfFont.getDepth()) & 0xFF; b = ((b * fPixel)>>bdfFont.getDepth()) & 0xFF; fPixel = (((r << 16)+ (g << 8) + b )| 0xFF000000); int px = x+offset+j; int py = y+(bdfFont.getBoundingBox().height+base-fHeight)+k-glyph.getBbx().y; surface.setRGBPixel(px, py, fPixel); } } } offset+=glyph.getDWidth().width-glyph.getBbx().x; } } }
6,779
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException { //synchronize to the inode cache to make sure that the inode does not // get //flushed between reading it and locking it synchronized (((Ext2FileSystem) getFileSystem()).getInodeCache()) { //reread the inode before synchronizing to it to make sure //all threads use the same instance int iNodeNr = iNode.getINodeNr(); iNode = ((Ext2FileSystem) getFileSystem()).getINode(iNodeNr); //lock the inode into the cache so it is not flushed before // synchronizing to it //(otherwise a new instance of INode referring to the same inode // could be put //in the cache resulting in the possibility of two threads // manipulating the same //inode at the same time because they would synchronize to // different INode instances) iNode.incLocked(); } //a single inode may be represented by more than one Ext2Directory // instances, //but each will use the same instance of the underlying inode (see // Ext2FileSystem.getINode()), //so synchronize to the inode. synchronized (iNode) { try { Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec = null; while (iterator.hasNext()) { rec = iterator.nextDirectoryRecord(); } Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); if (rec != null) { long lastPos = rec.getFileOffset(); long lastLen = rec.getRecLen(); //truncate the last record to its minimal size (cut the // padding from the end) rec.truncateRecord(); //directoryRecords may not extend over block boundaries: // see if the new record fits in the same block after // truncating the last record long remainingLength = fs.getBlockSize() - (lastPos % fs.getBlockSize()) - rec.getRecLen(); log.debug("LAST-1 record: begins at: " + lastPos + ", length: " + lastLen); log.debug("LAST-1 truncated length: " + rec.getRecLen()); log.debug("Remaining length: " + remainingLength); if (remainingLength >= dr.getRecLen()) { //write back the last record truncated dir.write(lastPos, rec.getData(), rec.getOffset(), rec .getRecLen()); //pad the end of the new record with zeroes dr.expandRecord(lastPos + rec.getRecLen(), lastPos + rec.getRecLen() + remainingLength); //append the new record at the end of the list dir.write(lastPos + rec.getRecLen(), dr.getData(), dr .getOffset(), dr.getRecLen()); log .debug("addDirectoryRecord(): LAST record: begins at: " + (rec.getFileOffset() + rec .getRecLen()) + ", length: " + dr.getRecLen()); } else { //the new record must go to the next block //(the previously last record (rec) stays padded to the // end of the block, so we can // append after that) dr.expandRecord(lastPos + lastLen, lastPos + lastLen + fs.getBlockSize()); dir.write(lastPos + lastLen, dr.getData(), dr .getOffset(), dr.getRecLen()); log .debug("addDirectoryRecord(): LAST record: begins at: " + (lastPos + lastLen) + ", length: " + dr.getRecLen()); } } else { //rec==null, ie. this is the first record in the // directory dr.expandRecord(0, fs.getBlockSize()); dir.write(0, dr.getData(), dr.getOffset(), dr.getRecLen()); log .debug("addDirectoryRecord(): LAST record: begins at: 0, length: " + dr.getRecLen()); } //dir.flush(); iNode.setMtime(System.currentTimeMillis() / 1000); // update the directory inode iNode.update(); //unlock the inode from the cache iNode.decLocked(); return; } catch (Throwable ex) { //could not fininsh the operation, unlock the inode from the // cache iNode.decLocked(); final IOException ioe = new IOException(); ioe.initCause(ex); throw ioe; } } }
private void addDirectoryRecord(Ext2DirectoryRecord dr) throws IOException, FileSystemException { //synchronize to the inode cache to make sure that the inode does not // get //flushed between reading it and locking it synchronized (((Ext2FileSystem) getFileSystem()).getInodeCache()) { //reread the inode before synchronizing to it to make sure //all threads use the same instance int iNodeNr = iNode.getINodeNr(); iNode = ((Ext2FileSystem) getFileSystem()).getINode(iNodeNr); //lock the inode into the cache so it is not flushed before // synchronizing to it //(otherwise a new instance of INode referring to the same inode // could be put //in the cache resulting in the possibility of two threads // manipulating the same //inode at the same time because they would synchronize to // different INode instances) iNode.incLocked(); } //a single inode may be represented by more than one Ext2Directory // instances, //but each will use the same instance of the underlying inode (see // Ext2FileSystem.getINode()), //so synchronize to the inode. synchronized (iNode) { try { Ext2File dir = new Ext2File(iNode); //read itself as a file //find the last directory record (if any) Ext2FSEntryIterator iterator = new Ext2FSEntryIterator(iNode); Ext2DirectoryRecord rec = null; while (iterator.hasNext()) { rec = iterator.nextDirectoryRecord(); } Ext2FileSystem fs = (Ext2FileSystem) getFileSystem(); if (rec != null) { long lastPos = rec.getFileOffset(); long lastLen = rec.getRecLen(); //truncate the last record to its minimal size (cut the // padding from the end) rec.truncateRecord(); //directoryRecords may not extend over block boundaries: // see if the new record fits in the same block after // truncating the last record long remainingLength = fs.getBlockSize() - (lastPos % fs.getBlockSize()) - rec.getRecLen(); log.debug("LAST-1 record: begins at: " + lastPos + ", length: " + lastLen); log.debug("LAST-1 truncated length: " + rec.getRecLen()); log.debug("Remaining length: " + remainingLength); if (remainingLength >= dr.getRecLen()) { //write back the last record truncated dir.write(lastPos, rec.getData(), rec.getOffset(), rec .getRecLen()); //pad the end of the new record with zeroes dr.expandRecord(lastPos + rec.getRecLen(), lastPos + rec.getRecLen() + remainingLength); //append the new record at the end of the list dir.write(lastPos + rec.getRecLen(), dr.getData(), dr .getOffset(), dr.getRecLen()); log .debug("addDirectoryRecord(): LAST record: begins at: " + (rec.getFileOffset() + rec .getRecLen()) + ", length: " + dr.getRecLen()); } else { //the new record must go to the next block //(the previously last record (rec) stays padded to the // end of the block, so we can // append after that) dr.expandRecord(lastPos + lastLen, lastPos + lastLen + fs.getBlockSize()); dir.write(lastPos + lastLen, dr.getData(), dr .getOffset(), dr.getRecLen()); log .debug("addDirectoryRecord(): LAST record: begins at: " + (lastPos + lastLen) + ", length: " + dr.getRecLen()); } } else { //rec==null, ie. this is the first record in the // directory dr.expandRecord(0, fs.getBlockSize()); dir.write(0, dr.getData(), dr.getOffset(), dr.getRecLen()); log .debug("addDirectoryRecord(): LAST record: begins at: 0, length: " + dr.getRecLen()); } //dir.flush(); iNode.setMtime(System.currentTimeMillis() / 1000); // update the directory inode iNode.update(); //unlock the inode from the cache return; } catch (Throwable ex) { //could not fininsh the operation, unlock the inode from the // cache final IOException ioe = new IOException(); ioe.initCause(ex); throw ioe; } } }
6,782
public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; Integer call_method = (Integer) methods.get(method); if (call_method == null) throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); switch (call_method.intValue()) { case 0 : // bind { try { NameComponent[] a_name = NameHelper.read(in); org.omg.CORBA.Object an_object = ObjectHelper.read(in); bind(a_name, an_object); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } catch (AlreadyBound ex) { out = rh.createExceptionReply(); AlreadyBoundHelper.write(out, ex); } break; } case 1 : // rebind { try { NameComponent[] a_name = NameHelper.read(in); org.omg.CORBA.Object an_object = ObjectHelper.read(in); rebind(a_name, an_object); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 2 : // bind_context { try { NameComponent[] a_name = NameHelper.read(in); NamingContext a_context = NamingContextHelper.read(in); bind_context(a_name, a_context); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } catch (AlreadyBound ex) { out = rh.createExceptionReply(); AlreadyBoundHelper.write(out, ex); } break; } case 3 : // rebind_context { try { NameComponent[] a_name = NameHelper.read(in); NamingContext a_context = NamingContextHelper.read(in); rebind_context(a_name, a_context); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 4 : // resolve { try { NameComponent[] a_name = NameHelper.read(in); org.omg.CORBA.Object __result = null; __result = resolve(a_name); out = rh.createReply(); ObjectHelper.write(out, __result); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 5 : // unbind { try { NameComponent[] a_name = NameHelper.read(in); unbind(a_name); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 6 : // new_context { NamingContext __result = null; __result = new_context(); out = rh.createReply(); NamingContextHelper.write(out, __result); break; } case 7 : // bind_new_context { try { NameComponent[] a_name = NameHelper.read(in); NamingContext __result = null; __result = bind_new_context(a_name); out = rh.createReply(); NamingContextHelper.write(out, __result); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (AlreadyBound ex) { out = rh.createExceptionReply(); AlreadyBoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 8 : // destroy { try { destroy(); out = rh.createReply(); } catch (NotEmpty ex) { out = rh.createExceptionReply(); NotEmptyHelper.write(out, ex); } break; } case 9 : // list { int amount = in.read_ulong(); BindingListHolder a_list = new BindingListHolder(); BindingIteratorHolder an_iter = new BindingIteratorHolder(); list(amount, a_list, an_iter); out = rh.createReply(); BindingListHelper.write(out, a_list.value); BindingIteratorHelper.write(out, an_iter.value); break; } default : throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); } return out; }
public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; Integer call_method = (Integer) methods.get(method); if (call_method == null) throw new BAD_OPERATION(Minor.Method, CompletionStatus.COMPLETED_MAYBE); switch (call_method.intValue()) { case 0 : // bind { try { NameComponent[] a_name = NameHelper.read(in); org.omg.CORBA.Object an_object = ObjectHelper.read(in); bind(a_name, an_object); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } catch (AlreadyBound ex) { out = rh.createExceptionReply(); AlreadyBoundHelper.write(out, ex); } break; } case 1 : // rebind { try { NameComponent[] a_name = NameHelper.read(in); org.omg.CORBA.Object an_object = ObjectHelper.read(in); rebind(a_name, an_object); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 2 : // bind_context { try { NameComponent[] a_name = NameHelper.read(in); NamingContext a_context = NamingContextHelper.read(in); bind_context(a_name, a_context); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } catch (AlreadyBound ex) { out = rh.createExceptionReply(); AlreadyBoundHelper.write(out, ex); } break; } case 3 : // rebind_context { try { NameComponent[] a_name = NameHelper.read(in); NamingContext a_context = NamingContextHelper.read(in); rebind_context(a_name, a_context); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 4 : // resolve { try { NameComponent[] a_name = NameHelper.read(in); org.omg.CORBA.Object __result = null; __result = resolve(a_name); out = rh.createReply(); ObjectHelper.write(out, __result); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 5 : // unbind { try { NameComponent[] a_name = NameHelper.read(in); unbind(a_name); out = rh.createReply(); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 6 : // new_context { NamingContext __result = null; __result = new_context(); out = rh.createReply(); NamingContextHelper.write(out, __result); break; } case 7 : // bind_new_context { try { NameComponent[] a_name = NameHelper.read(in); NamingContext __result = null; __result = bind_new_context(a_name); out = rh.createReply(); NamingContextHelper.write(out, __result); } catch (NotFound ex) { out = rh.createExceptionReply(); NotFoundHelper.write(out, ex); } catch (AlreadyBound ex) { out = rh.createExceptionReply(); AlreadyBoundHelper.write(out, ex); } catch (CannotProceed ex) { out = rh.createExceptionReply(); CannotProceedHelper.write(out, ex); } catch (InvalidName ex) { out = rh.createExceptionReply(); InvalidNameHelper.write(out, ex); } break; } case 8 : // destroy { try { destroy(); out = rh.createReply(); } catch (NotEmpty ex) { out = rh.createExceptionReply(); NotEmptyHelper.write(out, ex); } break; } case 9 : // list { int amount = in.read_ulong(); BindingListHolder a_list = new BindingListHolder(); BindingIteratorHolder an_iter = new BindingIteratorHolder(); list(amount, a_list, an_iter); out = rh.createReply(); BindingListHelper.write(out, a_list.value); BindingIteratorHelper.write(out, an_iter.value); break; } default : throw new BAD_OPERATION(Minor.Method, CompletionStatus.COMPLETED_MAYBE); } return out; }
6,784
public void invoke(ServerRequest request) { Streamable result = null; // The server request contains no required result type. Integer call_method = (Integer) methods.get(request.operation()); if (call_method == null) throw new BAD_OPERATION(0, CompletionStatus.COMPLETED_MAYBE); switch (call_method.intValue()) { case 4 : // resolve, object result = new ObjectHolder(); break; case 6 : // new_context, NamingContext case 7 : // bind_new_context, NamingContext { result = new NamingContextHolder(); break; } default : // void for others. result = null; } gnu.CORBA.ServiceRequestAdapter.invoke(request, this, result); }
public void invoke(ServerRequest request) { Streamable result = null; // The server request contains no required result type. Integer call_method = (Integer) methods.get(request.operation()); if (call_method == null) throw new BAD_OPERATION(Minor.Method, CompletionStatus.COMPLETED_MAYBE); switch (call_method.intValue()) { case 4 : // resolve, object result = new ObjectHolder(); break; case 6 : // new_context, NamingContext case 7 : // bind_new_context, NamingContext { result = new NamingContextHolder(); break; } default : // void for others. result = null; } gnu.CORBA.ServiceRequestAdapter.invoke(request, this, result); }
6,785
public static HostnameVerifier getDefaultHostnameVerifier() { return defaultVerifier; }
public static synchronized HostnameVerifier getDefaultHostnameVerifier() { return defaultVerifier; }
6,786
public static SSLSocketFactory getDefaultSSLSocketFactory() { return defaultFactory; }
public static synchronized SSLSocketFactory getDefaultSSLSocketFactory() { return defaultFactory; }
6,788
protected abstract void resolve() throws PluginException;
protected abstract void resolve(PluginRegistryModel registry) throws PluginException;
6,792
protected abstract void unresolve() throws PluginException;
protected abstract void unresolve(PluginRegistryModel registry) throws PluginException;
6,793
public SendEMailDialog(Frame parent, Session session) { if (!isEMailAvailable()) { JOptionPane.showMessageDialog( parent, LangTool.getString("messages.noEmailAPI"), "Error", JOptionPane.ERROR_MESSAGE, null); } else { this.session = session; Screen5250 screen = session.getScreen(); Object[] message = new Object[1]; message[0] = setupMailPanel("tn5250j.txt"); String[] options = new String[3]; int result = 0; while (result == 0 || result == 2) { // setup the dialog options setOptions(options); result = JOptionPane.showOptionDialog(parent, // the parent that the dialog blocks message, // the dialog message array LangTool.getString("em.title"), // the title of the dialog window JOptionPane.DEFAULT_OPTION, // option type JOptionPane.PLAIN_MESSAGE, // message type null, // optional icon, use null to use the default icon options, // options string array, will be made into buttons options[0] // option that should be made into a default btn ); switch (result) { case 0 : // Send it SendEMail sem = new SendEMail(); sem.setConfigFile("SMTPProperties.cfg"); sem.setTo((String) toAddress.getSelectedItem()); sem.setSubject(subject.getText()); if (bodyText.getText().length() > 0) sem.setMessage(bodyText.getText()); if (attachmentName.getText().length() > 0) sem.setAttachmentName(attachmentName.getText()); if (text.isSelected()) { StringBuffer sb = new StringBuffer(); char[] s = screen.getScreenAsChars(); int c = screen.getCols(); int l = screen.getRows() * c; int col = 0; for (int x = 0; x < l; x++, col++) { sb.append(s[x]); if (col == c) { sb.append('\n'); col = 0; } } sem.setAttachment(sb.toString()); } else { File dir = new File(System.getProperty("user.dir")); // setup the temp file name String tempFile = "tn5250jTemp"; try { // create the temporary file File f = File.createTempFile(tempFile, ".png", dir); System.out.println(f.getName()); System.out.println(f.getCanonicalPath()); // set it to delete on exit f.deleteOnExit(); EncodeComponent.encode( EncodeComponent.PNG, session, f); sem.setFileName(f.getName()); } catch (Exception ex) { System.out.println(ex.getMessage()); } } // send the information sendIt(parent, sem); sem.release(); sem = null; break; case 1 : // Cancel // System.out.println("Cancel"); break; case 2 : // Configure SMTP configureSMTP(parent); // System.out.println("Cancel"); break; default : break; } } } }
public SendEMailDialog(Frame parent, Session session) { if (!isEMailAvailable()) { JOptionPane.showMessageDialog( parent, LangTool.getString("messages.noEmailAPI"), "Error", JOptionPane.ERROR_MESSAGE, null); } else { this.session = session; Screen5250 screen = session.getScreen(); Object[] message = new Object[1]; message[0] = setupMailPanel("tn5250j.txt"); String[] options = new String[3]; int result = 0; while (result == 0 || result == 2) { // setup the dialog options setOptions(options); result = JOptionPane.showOptionDialog(parent, // the parent that the dialog blocks message, // the dialog message array LangTool.getString("em.title"), // the title of the dialog window JOptionPane.DEFAULT_OPTION, // option type JOptionPane.PLAIN_MESSAGE, // message type null, // optional icon, use null to use the default icon options, // options string array, will be made into buttons options[0] // option that should be made into a default btn ); switch (result) { case 0 : // Send it SendEMail sem = new SendEMail(); sem.setConfigFile("SMTPProperties.cfg"); sem.setTo((String) toAddress.getSelectedItem()); sem.setSubject(subject.getText()); if (bodyText.getText().length() > 0) sem.setMessage(bodyText.getText()); if (attachmentName.getText().length() > 0) sem.setAttachmentName(attachmentName.getText()); if (text.isSelected()) { StringBuffer sb = new StringBuffer(); char[] s = screen.getScreenAsChars(); int c = screen.getCols(); int l = screen.getRows() * c; int col = 0; for (int x = 0; x < l; x++, col++) { sb.append(s[x]); if (col == c) { sb.append('\n'); col = 0; } } sem.setAttachment(sb.toString()); } else if (graphic.isSelected()){ File dir = new File(System.getProperty("user.dir")); // setup the temp file name String tempFile = "tn5250jTemp"; try { // create the temporary file File f = File.createTempFile(tempFile, ".png", dir); System.out.println(f.getName()); System.out.println(f.getCanonicalPath()); // set it to delete on exit f.deleteOnExit(); EncodeComponent.encode( EncodeComponent.PNG, session, f); sem.setFileName(f.getName()); } catch (Exception ex) { System.out.println(ex.getMessage()); } } // send the information sendIt(parent, sem); sem.release(); sem = null; break; case 1 : // Cancel // System.out.println("Cancel"); break; case 2 : // Configure SMTP configureSMTP(parent); // System.out.println("Cancel"); break; default : break; } } } }
6,794
void showTip() { if (!enabled || currentComponent == null || !currentComponent.isEnabled() || (currentTip != null && currentTip.isVisible())) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Container parent = currentComponent.getParent(); Point p = currentPoint; Dimension dims = currentTip.getPreferredSize(); if (parent instanceof JPopupMenu) setLightWeightPopupEnabled(((JPopupMenu) parent).isLightWeightPopupEnabled()); else setLightWeightPopupEnabled(true); if (isLightWeightPopupEnabled()) { JLayeredPane pane = ((JRootPane) SwingUtilities. getAncestorOfClass(JRootPane.class, currentComponent)). getLayeredPane(); // This should never happen, but just in case. if (pane == null) return; if (containerPanel != null) hideTip(); containerPanel = new Panel(); JRootPane root = new JRootPane(); root.getContentPane().add(currentTip); containerPanel.add(root); LayoutManager lm = containerPanel.getLayout(); if (lm instanceof FlowLayout) { FlowLayout fm = (FlowLayout) lm; fm.setVgap(0); fm.setHgap(0); } p = SwingUtilities.convertPoint(currentComponent, p, pane); p = adjustLocation(p, pane, dims); pane.add(containerPanel); containerPanel.setBounds(p.x, p.y, dims.width, dims.height); currentTip.setBounds(0, 0, dims.width, dims.height); containerPanel.validate(); containerPanel.repaint(); } else if (currentComponent.isShowing()) { SwingUtilities.convertPointToScreen(p, currentComponent); p = adjustLocation(p, SwingUtilities.getWindowAncestor(currentComponent), dims); tooltipWindow = new JDialog(); tooltipWindow.setContentPane(currentTip); tooltipWindow.setUndecorated(true); tooltipWindow.getRootPane(). setWindowDecorationStyle(JRootPane.PLAIN_DIALOG); tooltipWindow.pack(); tooltipWindow.setBounds(p.x, p.y, dims.width, dims.height); tooltipWindow.show(); tooltipWindow.validate(); tooltipWindow.repaint(); } currentTip.setVisible(true); currentTip.revalidate(); currentTip.repaint(); }
void showTip() { if (!enabled || currentComponent == null || !currentComponent.isEnabled() || (currentTip != null && currentTip.isVisible())) return; if (currentTip == null || currentTip.getComponent() != currentComponent && currentComponent instanceof JComponent) currentTip = ((JComponent) currentComponent).createToolTip(); Container parent = currentComponent.getParent(); Point p = currentPoint; Dimension dims = currentTip.getPreferredSize(); if (parent instanceof JPopupMenu) setLightWeightPopupEnabled(((JPopupMenu) parent).isLightWeightPopupEnabled()); else setLightWeightPopupEnabled(true); if (isLightWeightPopupEnabled()) { JLayeredPane pane = ((JRootPane) SwingUtilities. getAncestorOfClass(JRootPane.class, currentComponent)). getLayeredPane(); // This should never happen, but just in case. if (pane == null) return; if (containerPanel != null) hideTip(); containerPanel = new Panel(); JRootPane root = new JRootPane(); root.getContentPane().add(currentTip); containerPanel.add(root); LayoutManager lm = containerPanel.getLayout(); if (lm instanceof FlowLayout) { FlowLayout fm = (FlowLayout) lm; fm.setVgap(0); fm.setHgap(0); } p = SwingUtilities.convertPoint(currentComponent, p, pane); p = adjustLocation(p, pane, dims); pane.add(containerPanel); containerPanel.setBounds(p.x, p.y, dims.width, dims.height); currentTip.setBounds(0, 0, dims.width, dims.height); containerPanel.validate(); containerPanel.repaint(); } else if (currentComponent.isShowing()) { SwingUtilities.convertPointToScreen(p, currentComponent); p = adjustLocation(p, SwingUtilities.getWindowAncestor(currentComponent), dims); tooltipWindow = new JDialog(); tooltipWindow.setContentPane(currentTip); tooltipWindow.setUndecorated(true); tooltipWindow.getRootPane(). setWindowDecorationStyle(JRootPane.PLAIN_DIALOG); tooltipWindow.pack(); tooltipWindow.setBounds(p.x, p.y, dims.width, dims.height); tooltipWindow.show(); tooltipWindow.validate(); tooltipWindow.repaint(); } currentTip.setVisible(true); currentTip.revalidate(); currentTip.repaint(); }
6,796
public MetalButtonUI() { super(); focusColor = UIManager.getColor(getPropertyPrefix() + "focus"); selectColor = UIManager.getColor(getPropertyPrefix() + "select"); disabledTextColor = UIManager.getColor(getPropertyPrefix() + "disabledText"); }
public MetalButtonUI() { super(); focusColor = UIManager.getColor(getPropertyPrefix() + "focus"); selectColor = UIManager.getColor(getPropertyPrefix() + "select"); disabledTextColor = UIManager.getColor(getPropertyPrefix() + "disabledText"); }
6,797
public static ComponentUI createUI(JComponent c) { return new MetalButtonUI(); }
public static ComponentUI createUI(JComponent c) { if (sharedUI == null) sharedUI = new MetalButtonUI(); return sharedUI; }
6,798
public void installDefaults(AbstractButton button) { super.installDefaults(button); button.setRolloverEnabled(UIManager.getBoolean( getPropertyPrefix() + "rollover")); }
public void installDefaults(AbstractButton button) { super.installDefaults(button); button.setRolloverEnabled(UIManager.getBoolean( getPropertyPrefix() + "rollover")); }
6,802
protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled()) { Rectangle area = b.getVisibleRect(); g.setColor(selectColor); g.fillRect(area.x, area.y, area.width, area.height); } }
protected void paintButtonPressed(Graphics g, AbstractButton b) { if (b.isContentAreaFilled()) { Rectangle area = b.getVisibleRect(); g.setColor(getSelectColor()); g.fillRect(area.x, area.y, area.width, area.height); } }
6,803
public void uninstallDefaults(AbstractButton button) { super.uninstallDefaults(button); button.setRolloverEnabled(false); }
public void uninstallDefaults(AbstractButton button) { super.uninstallDefaults(button); }
6,804
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x and y pixel coordinates. int pixelX = x; int pixelY = y; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics(); int ascent = metrics.getAscent(); int pixelWidth = 0; int pos = s.offset; int len = 0; for (int offset = s.offset; offset < (s.offset + s.count); ++offset) { char c = buffer[offset]; if (c == '\t' || c == '\n') { if (len > 0) { g.drawChars(buffer, pos, len, pixelX, pixelY + ascent); pixelX += pixelWidth; pixelWidth = 0; } pos = offset+1; len = 0; } switch (c) { case '\t': // In case we have a tab, we just 'jump' over the tab. // When we have no tab expander we just use the width of ' '. if (e != null) pixelX = (int) e.nextTabStop((float) pixelX, startOffset + offset - s.offset); else pixelX += metrics.charWidth(' '); break; case '\n': // In case we have a newline, we must jump to the next line. pixelY += metrics.getHeight(); pixelX = x; break; default: ++len; pixelWidth += metrics.charWidth(buffer[offset]); break; } } if (len > 0) g.drawChars(buffer, pos, len, pixelX, pixelY + ascent); return pixelX; }
public static final int drawTabbedText(Segment s, int x, int y, Graphics g, TabExpander e, int startOffset) { // This buffers the chars to be drawn. char[] buffer = s.array; // The current x and y pixel coordinates. int pixelX = x; int pixelY = y; // The font metrics of the current selected font. FontMetrics metrics = g.getFontMetrics(); int ascent = metrics.getAscent(); int pixelWidth = 0; int pos = s.offset; int len = 0; for (int offset = s.offset; offset < (s.offset + s.count); ++offset) { char c = buffer[offset]; if (c == '\t' || c == '\n') { if (len > 0) { g.drawChars(buffer, pos, len, pixelX, pixelY + ascent); pixelX += pixelWidth; pixelWidth = 0; } pos = offset+1; len = 0; } switch (c) { case '\t': // In case we have a tab, we just 'jump' over the tab. // When we have no tab expander we just use the width of ' '. if (e != null) pixelX = (int) e.nextTabStop((float) pixelX, startOffset + offset - s.offset); else pixelX += metrics.charWidth(' '); break; case '\n': // In case we have a newline, we must jump to the next line. pixelY += metrics.getHeight(); pixelX = x; break; default: ++len; pixelWidth += metrics.charWidth(buffer[offset]); break; } } if (len > 0) g.drawChars(buffer, pos, len, pixelX, pixelY + ascent); return pixelX; }
6,805
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); /* We have to update the anchorSelectionIndex and leadSelectionIndex variables */ /* The next if statements breaks down to "if this selection is adjacent to the previous selection and going in the same direction" */ if (((index0 - 1 == leadSelectionIndex && (index1 >= index0) && (leadSelectionIndex >= anchorSelectionIndex)) || (index0 + 1 == leadSelectionIndex && (index1 <= index0) && (leadSelectionIndex <= anchorSelectionIndex))) && (anchorSelectionIndex != -1 || leadSelectionIndex != -1)) setLeadSelectionIndex(index1); else { leadSelectionIndex = index1; anchorSelectionIndex = index0; sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); } }
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); /* We have to update the anchorSelectionIndex and leadSelectionIndex variables */ /* The next if statements breaks down to "if this selection is adjacent to the previous selection and going in the same direction" */ if (((index0 - 1 == leadSelectionIndex && (index1 >= index0) && (leadSelectionIndex >= anchorSelectionIndex)) || (index0 + 1 == leadSelectionIndex && (index1 <= index0) && (leadSelectionIndex <= anchorSelectionIndex))) && (anchorSelectionIndex != -1 || leadSelectionIndex != -1)) setLeadSelectionIndex(index1); else { leadSelectionIndex = index1; anchorSelectionIndex = index0; sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); } }
6,806
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); /* We have to update the anchorSelectionIndex and leadSelectionIndex variables */ /* The next if statements breaks down to "if this selection is adjacent to the previous selection and going in the same direction" */ if (((index0 - 1 == leadSelectionIndex && (index1 >= index0) && (leadSelectionIndex >= anchorSelectionIndex)) || (index0 + 1 == leadSelectionIndex && (index1 <= index0) && (leadSelectionIndex <= anchorSelectionIndex))) && (anchorSelectionIndex != -1 || leadSelectionIndex != -1)) setLeadSelectionIndex(index1); else { leadSelectionIndex = index1; anchorSelectionIndex = index0; sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); } }
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); /* We have to update the anchorSelectionIndex and leadSelectionIndex variables */ /* The next if statements breaks down to "if this selection is adjacent to the previous selection and going in the same direction" */ if (((index0 - 1 == leadSelectionIndex && (index1 >= index0) && (leadSelectionIndex >= anchorSelectionIndex)) || (index0 + 1 == leadSelectionIndex && (index1 <= index0) && (leadSelectionIndex <= anchorSelectionIndex))) && (anchorSelectionIndex != -1 || leadSelectionIndex != -1)) setLeadSelectionIndex(index1); else { leadSelectionIndex = index1; anchorSelectionIndex = index0; sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); } }
6,807
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); /* We have to update the anchorSelectionIndex and leadSelectionIndex variables */ /* The next if statements breaks down to "if this selection is adjacent to the previous selection and going in the same direction" */ if (((index0 - 1 == leadSelectionIndex && (index1 >= index0) && (leadSelectionIndex >= anchorSelectionIndex)) || (index0 + 1 == leadSelectionIndex && (index1 <= index0) && (leadSelectionIndex <= anchorSelectionIndex))) && (anchorSelectionIndex != -1 || leadSelectionIndex != -1)) setLeadSelectionIndex(index1); else { leadSelectionIndex = index1; anchorSelectionIndex = index0; sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); } }
public void addSelectionInterval(int index0, int index1) { if (selectionMode == SINGLE_SELECTION || selectionMode == SINGLE_INTERVAL_SELECTION) sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); /* We have to update the anchorSelectionIndex and leadSelectionIndex variables */ /* The next if statements breaks down to "if this selection is adjacent to the previous selection and going in the same direction" */ if ((isSelectedIndex(leadSelectionIndex)) && ((index0 - 1 == leadSelectionIndex && (index1 >= index0) && (leadSelectionIndex >= anchorSelectionIndex)) || (index0 + 1 == leadSelectionIndex && (index1 <= index0) && (leadSelectionIndex <= anchorSelectionIndex))) && (anchorSelectionIndex != -1 || leadSelectionIndex != -1)) setLeadSelectionIndex(index1); else { leadSelectionIndex = index1; anchorSelectionIndex = index0; sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); } }
6,808
public void setSelectionInterval(int index0, int index1) { sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.set(lo, hi+1); fireValueChanged(lo, hi, valueIsAdjusting); // update the anchorSelectionIndex and leadSelectionIndex variables setAnchorSelectionIndex(index0); leadSelectionIndex=index1; }
public void setSelectionInterval(int index0, int index1) { sel.clear(); if (selectionMode == SINGLE_SELECTION) index0 = index1; int lo = Math.min(index0, index1); int hi = Math.max(index0, index1); sel.set(lo, hi+1); // update the anchorSelectionIndex and leadSelectionIndex variables setAnchorSelectionIndex(index0); leadSelectionIndex=index1; }
6,813
public void checkAccess(Thread thread) { if (thread.getThreadGroup() != null && thread.getThreadGroup().getParent() != null) checkPermission(new RuntimePermission("modifyThread")); }
public void checkAccess(Thread thread) { if (thread.getThreadGroup() != null && thread.getThreadGroup().getParent() == null) checkPermission(new RuntimePermission("modifyThread")); }
6,815
public GnuCrypto() { super(Registry.GNU_CRYPTO, 2.1, "GNU Crypto JCE Provider"); AccessController.doPrivileged(new PrivilegedAction() { public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS ImplementedIn", "Software"); put("Cipher.ARCFOUR", gnu.javax.crypto.jce.cipher.ARCFourSpi.class.getName()); put("Cipher.ARCFOUR ImplementedIn", "Software"); put("Cipher.BLOWFISH", gnu.javax.crypto.jce.cipher.BlowfishSpi.class.getName()); put("Cipher.BLOWFISH ImplementedIn", "Software"); put("Cipher.DES", gnu.javax.crypto.jce.cipher.DESSpi.class.getName()); put("Cipher.DES ImplementedIn", "Software"); put("Cipher.KHAZAD", gnu.javax.crypto.jce.cipher.KhazadSpi.class.getName()); put("Cipher.KHAZAD ImplementedIn", "Software"); put("Cipher.NULL", gnu.javax.crypto.jce.cipher.NullCipherSpi.class.getName()); put("Cipher.NULL ImplementedIn", "Software"); put("Cipher.AES", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.AES ImplementedIn", "Software"); put("Cipher.RIJNDAEL", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.RIJNDAEL ImplementedIn", "Software"); put("Cipher.SERPENT", gnu.javax.crypto.jce.cipher.SerpentSpi.class.getName()); put("Cipher.SERPENT ImplementedIn", "Software"); put("Cipher.SQUARE", gnu.javax.crypto.jce.cipher.SquareSpi.class.getName()); put("Cipher.SQUARE ImplementedIn", "Software"); put("Cipher.TRIPLEDES", gnu.javax.crypto.jce.cipher.TripleDESSpi.class.getName()); put("Cipher.TRIPLEDES ImplementedIn", "Software"); put("Cipher.TWOFISH", gnu.javax.crypto.jce.cipher.TwofishSpi.class.getName()); put("Cipher.TWOFISH ImplementedIn", "Software"); put("Cipher.CAST5", gnu.javax.crypto.jce.cipher.Cast5Spi.class.getName()); put("Cipher.CAST5 ImplementedIn", "Software"); // PBES2 ciphers. put("Cipher.PBEWithHMacHavalAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.AES.class.getName()); put("Cipher.PBEWithHMacHavalAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Anubis.class.getName()); put( "Cipher.PBEWithHMacHavalAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Blowfish.class.getName()); put("Cipher.PBEWithHMacHavalAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Cast5.class.getName()); put("Cipher.PBEWithHMacHavalAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.DES.class.getName()); put("Cipher.PBEWithHMacHavalAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Khazad.class.getName()); put("Cipher.PBEWithHMacHavalAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Serpent.class.getName()); put("Cipher.PBEWithHMacHavalAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Square.class.getName()); put( "Cipher.PBEWithHMacHavalAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.TripleDES.class.getName()); put("Cipher.PBEWithHMacHavalAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Twofish.class.getName()); put("Cipher.PBEWithHMacMD2AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.AES.class.getName()); put("Cipher.PBEWithHMacMD2AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Anubis.class.getName()); put("Cipher.PBEWithHMacMD2AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD2AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Cast5.class.getName()); put("Cipher.PBEWithHMacMD2AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.DES.class.getName()); put("Cipher.PBEWithHMacMD2AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Khazad.class.getName()); put("Cipher.PBEWithHMacMD2AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Serpent.class.getName()); put("Cipher.PBEWithHMacMD2AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Square.class.getName()); put("Cipher.PBEWithHMacMD2AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD2AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Twofish.class.getName()); put("Cipher.PBEWithHMacMD4AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.AES.class.getName()); put("Cipher.PBEWithHMacMD4AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Anubis.class.getName()); put("Cipher.PBEWithHMacMD4AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD4AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Cast5.class.getName()); put("Cipher.PBEWithHMacMD4AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.DES.class.getName()); put("Cipher.PBEWithHMacMD4AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Khazad.class.getName()); put("Cipher.PBEWithHMacMD4AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Serpent.class.getName()); put("Cipher.PBEWithHMacMD4AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Square.class.getName()); put("Cipher.PBEWithHMacMD4AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD4AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Twofish.class.getName()); put("Cipher.PBEWithHMacMD5AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.AES.class.getName()); put("Cipher.PBEWithHMacMD5AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Anubis.class.getName()); put("Cipher.PBEWithHMacMD5AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD5AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Cast5.class.getName()); put("Cipher.PBEWithHMacMD5AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.DES.class.getName()); put("Cipher.PBEWithHMacMD5AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Khazad.class.getName()); put("Cipher.PBEWithHMacMD5AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Serpent.class.getName()); put("Cipher.PBEWithHMacMD5AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Square.class.getName()); put("Cipher.PBEWithHMacMD5AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD5AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA1AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.AES.class.getName()); put("Cipher.PBEWithHMacSHA1AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Anubis.class.getName()); put("Cipher.PBEWithHMacSHA1AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA1AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA1AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.DES.class.getName()); put("Cipher.PBEWithHMacSHA1AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Khazad.class.getName()); put("Cipher.PBEWithHMacSHA1AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA1AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Square.class.getName()); put( "Cipher.PBEWithHMacSHA1AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.TripleDES.class.getName()); put("Cipher.PBEWithHMacSHA1AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA256AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.AES.class.getName()); put("Cipher.PBEWithHMacSHA256AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA256AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA256AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA256AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.DES.class.getName()); put("Cipher.PBEWithHMacSHA256AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA256AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA256AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Square.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA384AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.AES.class.getName()); put("Cipher.PBEWithHMacSHA384AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA384AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA384AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA384AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.DES.class.getName()); put("Cipher.PBEWithHMacSHA384AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA384AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA384AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Square.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA512AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.AES.class.getName()); put("Cipher.PBEWithHMacSHA512AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA512AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA512AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA512AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.DES.class.getName()); put("Cipher.PBEWithHMacSHA512AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA512AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA512AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Square.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Twofish.class.getName()); put("Cipher.PBEWithHMacTigerAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.AES.class.getName()); put("Cipher.PBEWithHMacTigerAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Anubis.class.getName()); put( "Cipher.PBEWithHMacTigerAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Blowfish.class.getName()); put("Cipher.PBEWithHMacTigerAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Cast5.class.getName()); put("Cipher.PBEWithHMacTigerAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.DES.class.getName()); put("Cipher.PBEWithHMacTigerAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Khazad.class.getName()); put("Cipher.PBEWithHMacTigerAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Serpent.class.getName()); put("Cipher.PBEWithHMacTigerAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Square.class.getName()); put( "Cipher.PBEWithHMacTigerAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.TripleDES.class.getName()); put("Cipher.PBEWithHMacTigerAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Twofish.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.AES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Anubis.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Blowfish.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Cast5.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.DES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Khazad.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Serpent.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Square.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.TripleDES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Twofish.class.getName()); // SecretKeyFactory interface to PBKDF2. put( "SecretKeyFactory.PBKDF2WithHMacHaval", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacHaval.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD2", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD2.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD4", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD4.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD5", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD5.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA1", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA1.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA256", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA256.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA384", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA384.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA512", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA512.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacTiger", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacTiger.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacWhirlpool", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacWhirlpool.class.getName()); // Simple SecretKeyFactory implementations. put("SecretKeyFactory.Anubis", gnu.javax.crypto.jce.key.AnubisSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Blowfish", gnu.javax.crypto.jce.key.BlowfishSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Cast5", gnu.javax.crypto.jce.key.Cast5SecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.DES", gnu.javax.crypto.jce.key.DESSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Khazad", gnu.javax.crypto.jce.key.KhazadSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Rijndael", gnu.javax.crypto.jce.key.RijndaelSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Serpent", gnu.javax.crypto.jce.key.SerpentSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Square", gnu.javax.crypto.jce.key.SquareSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.TripleDES", gnu.javax.crypto.jce.key.DESedeSecretKeyFactoryImpl.class.getName()); put("Alg.Alias.SecretKeyFactory.AES", "Rijndael"); put("Alg.Alias.SecretKeyFactory.DESede", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3-DES", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3DES", "TripleDES"); put("AlgorithmParameters.BlockCipherParameters", gnu.javax.crypto.jce.params.BlockCipherParameters.class.getName()); // KeyGenerator Adapter implementations put("KeyGenerator.Anubis", gnu.javax.crypto.jce.key.AnubisKeyGeneratorImpl.class.getName()); put("KeyGenerator.Blowfish", gnu.javax.crypto.jce.key.BlowfishKeyGeneratorImpl.class.getName()); put("KeyGenerator.Cast5", gnu.javax.crypto.jce.key.Cast5KeyGeneratorImpl.class.getName()); put("KeyGenerator.DES", gnu.javax.crypto.jce.key.DESKeyGeneratorImpl.class.getName()); put("KeyGenerator.Khazad", gnu.javax.crypto.jce.key.KhazadKeyGeneratorImpl.class.getName()); put("KeyGenerator.Rijndael", gnu.javax.crypto.jce.key.RijndaelKeyGeneratorImpl.class.getName()); put("KeyGenerator.Serpent", gnu.javax.crypto.jce.key.SerpentKeyGeneratorImpl.class.getName()); put("KeyGenerator.Square", gnu.javax.crypto.jce.key.SquareKeyGeneratorImpl.class.getName()); put("KeyGenerator.TripleDES", gnu.javax.crypto.jce.key.TripleDESKeyGeneratorImpl.class.getName()); put("Alg.Alias.KeyGenerator.AES", "Rijndael"); put("Alg.Alias.KeyGenerator.DESede", "TripleDES"); put("Alg.Alias.KeyGenerator.3-DES", "TripleDES"); put("Alg.Alias.KeyGenerator.3DES", "TripleDES"); // MAC put("Mac.HMAC-MD2", gnu.javax.crypto.jce.mac.HMacMD2Spi.class.getName()); put("Mac.HMAC-MD4", gnu.javax.crypto.jce.mac.HMacMD4Spi.class.getName()); put("Mac.HMAC-MD5", gnu.javax.crypto.jce.mac.HMacMD5Spi.class.getName()); put("Mac.HMAC-RIPEMD128", gnu.javax.crypto.jce.mac.HMacRipeMD128Spi.class.getName()); put("Mac.HMAC-RIPEMD160", gnu.javax.crypto.jce.mac.HMacRipeMD160Spi.class.getName()); put("Mac.HMAC-SHA160", gnu.javax.crypto.jce.mac.HMacSHA160Spi.class.getName()); put("Mac.HMAC-SHA256", gnu.javax.crypto.jce.mac.HMacSHA256Spi.class.getName()); put("Mac.HMAC-SHA384", gnu.javax.crypto.jce.mac.HMacSHA384Spi.class.getName()); put("Mac.HMAC-SHA512", gnu.javax.crypto.jce.mac.HMacSHA512Spi.class.getName()); put("Mac.HMAC-TIGER", gnu.javax.crypto.jce.mac.HMacTigerSpi.class.getName()); put("Mac.HMAC-HAVAL", gnu.javax.crypto.jce.mac.HMacHavalSpi.class.getName()); put("Mac.HMAC-WHIRLPOOL", gnu.javax.crypto.jce.mac.HMacWhirlpoolSpi.class.getName()); put("Mac.TMMH16", gnu.javax.crypto.jce.mac.TMMH16Spi.class.getName()); put("Mac.UHASH32", gnu.javax.crypto.jce.mac.UHash32Spi.class.getName()); put("Mac.UMAC32", gnu.javax.crypto.jce.mac.UMac32Spi.class.getName()); put("Mac.OMAC-ANUBIS", gnu.javax.crypto.jce.mac.OMacAnubisImpl.class.getName()); put("Mac.OMAC-BLOWFISH", gnu.javax.crypto.jce.mac.OMacBlowfishImpl.class.getName()); put("Mac.OMAC-CAST5", gnu.javax.crypto.jce.mac.OMacCast5Impl.class.getName()); put("Mac.OMAC-DES", gnu.javax.crypto.jce.mac.OMacDESImpl.class.getName()); put("Mac.OMAC-KHAZAD", gnu.javax.crypto.jce.mac.OMacKhazadImpl.class.getName()); put("Mac.OMAC-RIJNDAEL", gnu.javax.crypto.jce.mac.OMacRijndaelImpl.class.getName()); put("Mac.OMAC-SERPENT", gnu.javax.crypto.jce.mac.OMacSerpentImpl.class.getName()); put("Mac.OMAC-SQUARE", gnu.javax.crypto.jce.mac.OMacSquareImpl.class.getName()); put("Mac.OMAC-TRIPLEDES", gnu.javax.crypto.jce.mac.OMacTripleDESImpl.class.getName()); put("Mac.OMAC-TWOFISH", gnu.javax.crypto.jce.mac.OMacTwofishImpl.class.getName()); // Aliases put("Alg.Alias.AlgorithmParameters.AES", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.BLOWFISH", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.ANUBIS", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.KHAZAD", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.NULL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.RIJNDAEL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SERPENT", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SQUARE", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.TWOFISH", "BlockCipherParameters"); put("Alg.Alias.Cipher.RC4", "ARCFOUR"); put("Alg.Alias.Cipher.3-DES", "TRIPLEDES"); put("Alg.Alias.Cipher.3DES", "TRIPLEDES"); put("Alg.Alias.Cipher.DES-EDE", "TRIPLEDES"); put("Alg.Alias.Cipher.DESede", "TRIPLEDES"); put("Alg.Alias.Cipher.CAST128", "CAST5"); put("Alg.Alias.Cipher.CAST-128", "CAST5"); put("Alg.Alias.Mac.HMAC-SHS", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA1", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-160", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-256", "HMAC-SHA256"); put("Alg.Alias.Mac.HMAC-SHA-384", "HMAC-SHA384"); put("Alg.Alias.Mac.HMAC-SHA-512", "HMAC-SHA512"); put("Alg.Alias.Mac.HMAC-RIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HMAC-RIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.OMAC-AES", "OMAC-RIJNDAEL"); put("Alg.Alias.Mac.OMAC-3DES", "OMAC-3DES"); put("Alg.Alias.Mac.HmacMD4", "HMAC-MD4"); put("Alg.Alias.Mac.HmacMD5", "HMAC-MD5"); put("Alg.Alias.Mac.HmacSHA-1", "HMAC-SHA-1"); put("Alg.Alias.Mac.HmacSHA1", "HMAC-SHA1"); put("Alg.Alias.Mac.HmacSHA-160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA-256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA-384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA-512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacSHA512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacRIPEMD128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacRIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacTiger", "HMAC-TIGER"); put("Alg.Alias.Mac.HmacHaval", "HMAC-HAVAL"); put("Alg.Alias.Mac.HmacWhirlpool", "HMAC-WHIRLPOOL"); // KeyAgreement put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); // Cipher put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5"); // SecureRandom put("SecureRandom.ARCFOUR", gnu.javax.crypto.jce.prng.ARCFourRandomSpi.class.getName()); put("SecureRandom.ARCFOUR ImplementedIn", "Software"); put("SecureRandom.CSPRNG", gnu.javax.crypto.jce.prng.CSPRNGSpi.class.getName()); put("SecureRandom.CSPRNG ImplementedIn", "Software"); put("SecureRandom.ICM", gnu.javax.crypto.jce.prng.ICMRandomSpi.class.getName()); put("SecureRandom.ICM ImplementedIn", "Software"); put("SecureRandom.UMAC-KDF", gnu.javax.crypto.jce.prng.UMacRandomSpi.class.getName()); put("SecureRandom.UMAC-KDF ImplementedIn", "Software"); put("SecureRandom.Fortuna", gnu.javax.crypto.jce.prng.FortunaImpl.class.getName ()); put("SecureRandom.Fortuna ImplementedIn", "Software"); // KeyStore put("KeyStore.GKR", gnu.javax.crypto.jce.keyring.GnuKeyring.class.getName()); put("Alg.Alias.KeyStore.GnuKeyring", "GKR"); // KeyPairGenerator --------------------------------------------------- put("KeyPairGenerator.DH", gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.class.getName()); put("KeyPairGenerator.DH KeySize", "512"); put("KeyPairGenerator.DH ImplementedIn", "Software"); put("Alg.Alias.KeyPairGenerator.DiffieHellman", "DH"); // KeyFactory --------------------------------------------------------- put("KeyFactory.DH", gnu.javax.crypto.jce.sig.DHKeyFactory.class.getName()); put("Alg.Alias,KeyFactory.DiffieHellman", "DH"); return null; } }); }
public GnuCrypto() { super(Registry.GNU_CRYPTO, 2.1, "GNU Crypto JCE Provider"); AccessController.doPrivileged(new PrivilegedAction() { public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS ImplementedIn", "Software"); put("Cipher.ARCFOUR", gnu.javax.crypto.jce.cipher.ARCFourSpi.class.getName()); put("Cipher.ARCFOUR ImplementedIn", "Software"); put("Cipher.BLOWFISH", gnu.javax.crypto.jce.cipher.BlowfishSpi.class.getName()); put("Cipher.BLOWFISH ImplementedIn", "Software"); put("Cipher.DES", gnu.javax.crypto.jce.cipher.DESSpi.class.getName()); put("Cipher.DES ImplementedIn", "Software"); put("Cipher.KHAZAD", gnu.javax.crypto.jce.cipher.KhazadSpi.class.getName()); put("Cipher.KHAZAD ImplementedIn", "Software"); put("Cipher.NULL", gnu.javax.crypto.jce.cipher.NullCipherSpi.class.getName()); put("Cipher.NULL ImplementedIn", "Software"); put("Cipher.AES", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.AES ImplementedIn", "Software"); put("Cipher.RIJNDAEL", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.RIJNDAEL ImplementedIn", "Software"); put("Cipher.SERPENT", gnu.javax.crypto.jce.cipher.SerpentSpi.class.getName()); put("Cipher.SERPENT ImplementedIn", "Software"); put("Cipher.SQUARE", gnu.javax.crypto.jce.cipher.SquareSpi.class.getName()); put("Cipher.SQUARE ImplementedIn", "Software"); put("Cipher.TRIPLEDES", gnu.javax.crypto.jce.cipher.TripleDESSpi.class.getName()); put("Cipher.TRIPLEDES ImplementedIn", "Software"); put("Cipher.TWOFISH", gnu.javax.crypto.jce.cipher.TwofishSpi.class.getName()); put("Cipher.TWOFISH ImplementedIn", "Software"); put("Cipher.CAST5", gnu.javax.crypto.jce.cipher.Cast5Spi.class.getName()); put("Cipher.CAST5 ImplementedIn", "Software"); // PBES2 ciphers. put("Cipher.PBEWithHMacHavalAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.AES.class.getName()); put("Cipher.PBEWithHMacHavalAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Anubis.class.getName()); put( "Cipher.PBEWithHMacHavalAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Blowfish.class.getName()); put("Cipher.PBEWithHMacHavalAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Cast5.class.getName()); put("Cipher.PBEWithHMacHavalAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.DES.class.getName()); put("Cipher.PBEWithHMacHavalAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Khazad.class.getName()); put("Cipher.PBEWithHMacHavalAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Serpent.class.getName()); put("Cipher.PBEWithHMacHavalAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Square.class.getName()); put( "Cipher.PBEWithHMacHavalAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.TripleDES.class.getName()); put("Cipher.PBEWithHMacHavalAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Twofish.class.getName()); put("Cipher.PBEWithHMacMD2AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.AES.class.getName()); put("Cipher.PBEWithHMacMD2AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Anubis.class.getName()); put("Cipher.PBEWithHMacMD2AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD2AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Cast5.class.getName()); put("Cipher.PBEWithHMacMD2AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.DES.class.getName()); put("Cipher.PBEWithHMacMD2AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Khazad.class.getName()); put("Cipher.PBEWithHMacMD2AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Serpent.class.getName()); put("Cipher.PBEWithHMacMD2AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Square.class.getName()); put("Cipher.PBEWithHMacMD2AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD2AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Twofish.class.getName()); put("Cipher.PBEWithHMacMD4AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.AES.class.getName()); put("Cipher.PBEWithHMacMD4AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Anubis.class.getName()); put("Cipher.PBEWithHMacMD4AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD4AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Cast5.class.getName()); put("Cipher.PBEWithHMacMD4AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.DES.class.getName()); put("Cipher.PBEWithHMacMD4AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Khazad.class.getName()); put("Cipher.PBEWithHMacMD4AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Serpent.class.getName()); put("Cipher.PBEWithHMacMD4AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Square.class.getName()); put("Cipher.PBEWithHMacMD4AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD4AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Twofish.class.getName()); put("Cipher.PBEWithHMacMD5AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.AES.class.getName()); put("Cipher.PBEWithHMacMD5AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Anubis.class.getName()); put("Cipher.PBEWithHMacMD5AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD5AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Cast5.class.getName()); put("Cipher.PBEWithHMacMD5AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.DES.class.getName()); put("Cipher.PBEWithHMacMD5AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Khazad.class.getName()); put("Cipher.PBEWithHMacMD5AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Serpent.class.getName()); put("Cipher.PBEWithHMacMD5AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Square.class.getName()); put("Cipher.PBEWithHMacMD5AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD5AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA1AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.AES.class.getName()); put("Cipher.PBEWithHMacSHA1AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Anubis.class.getName()); put("Cipher.PBEWithHMacSHA1AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA1AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA1AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.DES.class.getName()); put("Cipher.PBEWithHMacSHA1AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Khazad.class.getName()); put("Cipher.PBEWithHMacSHA1AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA1AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Square.class.getName()); put( "Cipher.PBEWithHMacSHA1AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.TripleDES.class.getName()); put("Cipher.PBEWithHMacSHA1AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA256AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.AES.class.getName()); put("Cipher.PBEWithHMacSHA256AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA256AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA256AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA256AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.DES.class.getName()); put("Cipher.PBEWithHMacSHA256AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA256AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA256AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Square.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA384AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.AES.class.getName()); put("Cipher.PBEWithHMacSHA384AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA384AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA384AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA384AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.DES.class.getName()); put("Cipher.PBEWithHMacSHA384AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA384AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA384AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Square.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA512AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.AES.class.getName()); put("Cipher.PBEWithHMacSHA512AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA512AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA512AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA512AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.DES.class.getName()); put("Cipher.PBEWithHMacSHA512AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA512AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA512AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Square.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Twofish.class.getName()); put("Cipher.PBEWithHMacTigerAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.AES.class.getName()); put("Cipher.PBEWithHMacTigerAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Anubis.class.getName()); put( "Cipher.PBEWithHMacTigerAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Blowfish.class.getName()); put("Cipher.PBEWithHMacTigerAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Cast5.class.getName()); put("Cipher.PBEWithHMacTigerAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.DES.class.getName()); put("Cipher.PBEWithHMacTigerAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Khazad.class.getName()); put("Cipher.PBEWithHMacTigerAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Serpent.class.getName()); put("Cipher.PBEWithHMacTigerAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Square.class.getName()); put( "Cipher.PBEWithHMacTigerAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.TripleDES.class.getName()); put("Cipher.PBEWithHMacTigerAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Twofish.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.AES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Anubis.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Blowfish.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Cast5.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.DES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Khazad.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Serpent.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Square.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.TripleDES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Twofish.class.getName()); // SecretKeyFactory interface to PBKDF2. put( "SecretKeyFactory.PBKDF2WithHMacHaval", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacHaval.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD2", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD2.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD4", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD4.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD5", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD5.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA1", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA1.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA256", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA256.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA384", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA384.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA512", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA512.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacTiger", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacTiger.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacWhirlpool", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacWhirlpool.class.getName()); // Simple SecretKeyFactory implementations. put("SecretKeyFactory.Anubis", gnu.javax.crypto.jce.key.AnubisSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Blowfish", gnu.javax.crypto.jce.key.BlowfishSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Cast5", gnu.javax.crypto.jce.key.Cast5SecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.DES", gnu.javax.crypto.jce.key.DESSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Khazad", gnu.javax.crypto.jce.key.KhazadSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Rijndael", gnu.javax.crypto.jce.key.RijndaelSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Serpent", gnu.javax.crypto.jce.key.SerpentSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Square", gnu.javax.crypto.jce.key.SquareSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.TripleDES", gnu.javax.crypto.jce.key.DESedeSecretKeyFactoryImpl.class.getName()); put("Alg.Alias.SecretKeyFactory.AES", "Rijndael"); put("Alg.Alias.SecretKeyFactory.DESede", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3-DES", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3DES", "TripleDES"); put("AlgorithmParameters.BlockCipherParameters", gnu.javax.crypto.jce.params.BlockCipherParameters.class.getName()); // KeyGenerator Adapter implementations put("KeyGenerator.Anubis", gnu.javax.crypto.jce.key.AnubisKeyGeneratorImpl.class.getName()); put("KeyGenerator.Blowfish", gnu.javax.crypto.jce.key.BlowfishKeyGeneratorImpl.class.getName()); put("KeyGenerator.Cast5", gnu.javax.crypto.jce.key.Cast5KeyGeneratorImpl.class.getName()); put("KeyGenerator.DES", gnu.javax.crypto.jce.key.DESKeyGeneratorImpl.class.getName()); put("KeyGenerator.Khazad", gnu.javax.crypto.jce.key.KhazadKeyGeneratorImpl.class.getName()); put("KeyGenerator.Rijndael", gnu.javax.crypto.jce.key.RijndaelKeyGeneratorImpl.class.getName()); put("KeyGenerator.Serpent", gnu.javax.crypto.jce.key.SerpentKeyGeneratorImpl.class.getName()); put("KeyGenerator.Square", gnu.javax.crypto.jce.key.SquareKeyGeneratorImpl.class.getName()); put("KeyGenerator.TripleDES", gnu.javax.crypto.jce.key.TripleDESKeyGeneratorImpl.class.getName()); put("Alg.Alias.KeyGenerator.AES", "Rijndael"); put("Alg.Alias.KeyGenerator.DESede", "TripleDES"); put("Alg.Alias.KeyGenerator.3-DES", "TripleDES"); put("Alg.Alias.KeyGenerator.3DES", "TripleDES"); // MAC put("Mac.HMAC-MD2", gnu.javax.crypto.jce.mac.HMacMD2Spi.class.getName()); put("Mac.HMAC-MD4", gnu.javax.crypto.jce.mac.HMacMD4Spi.class.getName()); put("Mac.HMAC-MD5", gnu.javax.crypto.jce.mac.HMacMD5Spi.class.getName()); put("Mac.HMAC-RIPEMD128", gnu.javax.crypto.jce.mac.HMacRipeMD128Spi.class.getName()); put("Mac.HMAC-RIPEMD160", gnu.javax.crypto.jce.mac.HMacRipeMD160Spi.class.getName()); put("Mac.HMAC-SHA160", gnu.javax.crypto.jce.mac.HMacSHA160Spi.class.getName()); put("Mac.HMAC-SHA256", gnu.javax.crypto.jce.mac.HMacSHA256Spi.class.getName()); put("Mac.HMAC-SHA384", gnu.javax.crypto.jce.mac.HMacSHA384Spi.class.getName()); put("Mac.HMAC-SHA512", gnu.javax.crypto.jce.mac.HMacSHA512Spi.class.getName()); put("Mac.HMAC-TIGER", gnu.javax.crypto.jce.mac.HMacTigerSpi.class.getName()); put("Mac.HMAC-HAVAL", gnu.javax.crypto.jce.mac.HMacHavalSpi.class.getName()); put("Mac.HMAC-WHIRLPOOL", gnu.javax.crypto.jce.mac.HMacWhirlpoolSpi.class.getName()); put("Mac.TMMH16", gnu.javax.crypto.jce.mac.TMMH16Spi.class.getName()); put("Mac.UHASH32", gnu.javax.crypto.jce.mac.UHash32Spi.class.getName()); put("Mac.UMAC32", gnu.javax.crypto.jce.mac.UMac32Spi.class.getName()); put("Mac.OMAC-ANUBIS", gnu.javax.crypto.jce.mac.OMacAnubisImpl.class.getName()); put("Mac.OMAC-BLOWFISH", gnu.javax.crypto.jce.mac.OMacBlowfishImpl.class.getName()); put("Mac.OMAC-CAST5", gnu.javax.crypto.jce.mac.OMacCast5Impl.class.getName()); put("Mac.OMAC-DES", gnu.javax.crypto.jce.mac.OMacDESImpl.class.getName()); put("Mac.OMAC-KHAZAD", gnu.javax.crypto.jce.mac.OMacKhazadImpl.class.getName()); put("Mac.OMAC-RIJNDAEL", gnu.javax.crypto.jce.mac.OMacRijndaelImpl.class.getName()); put("Mac.OMAC-SERPENT", gnu.javax.crypto.jce.mac.OMacSerpentImpl.class.getName()); put("Mac.OMAC-SQUARE", gnu.javax.crypto.jce.mac.OMacSquareImpl.class.getName()); put("Mac.OMAC-TRIPLEDES", gnu.javax.crypto.jce.mac.OMacTripleDESImpl.class.getName()); put("Mac.OMAC-TWOFISH", gnu.javax.crypto.jce.mac.OMacTwofishImpl.class.getName()); // Aliases put("Alg.Alias.AlgorithmParameters.AES", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.BLOWFISH", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.ANUBIS", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.KHAZAD", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.NULL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.RIJNDAEL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SERPENT", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SQUARE", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.TWOFISH", "BlockCipherParameters"); put("Alg.Alias.Cipher.RC4", "ARCFOUR"); put("Alg.Alias.Cipher.3-DES", "TRIPLEDES"); put("Alg.Alias.Cipher.3DES", "TRIPLEDES"); put("Alg.Alias.Cipher.DES-EDE", "TRIPLEDES"); put("Alg.Alias.Cipher.DESede", "TRIPLEDES"); put("Alg.Alias.Cipher.CAST128", "CAST5"); put("Alg.Alias.Cipher.CAST-128", "CAST5"); put("Alg.Alias.Mac.HMAC-SHS", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA1", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-160", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-256", "HMAC-SHA256"); put("Alg.Alias.Mac.HMAC-SHA-384", "HMAC-SHA384"); put("Alg.Alias.Mac.HMAC-SHA-512", "HMAC-SHA512"); put("Alg.Alias.Mac.HMAC-RIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HMAC-RIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.OMAC-AES", "OMAC-RIJNDAEL"); put("Alg.Alias.Mac.OMAC-3DES", "OMAC-3DES"); put("Alg.Alias.Mac.HmacMD4", "HMAC-MD4"); put("Alg.Alias.Mac.HmacMD5", "HMAC-MD5"); put("Alg.Alias.Mac.HmacSHA-1", "HMAC-SHA-1"); put("Alg.Alias.Mac.HmacSHA1", "HMAC-SHA1"); put("Alg.Alias.Mac.HmacSHA-160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA-256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA-384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA-512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacSHA512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacRIPEMD128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacRIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacTiger", "HMAC-TIGER"); put("Alg.Alias.Mac.HmacHaval", "HMAC-HAVAL"); put("Alg.Alias.Mac.HmacWhirlpool", "HMAC-WHIRLPOOL"); // KeyAgreement put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); // Cipher put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5"); // SecureRandom put("SecureRandom.ARCFOUR", gnu.javax.crypto.jce.prng.ARCFourRandomSpi.class.getName()); put("SecureRandom.ARCFOUR ImplementedIn", "Software"); put("SecureRandom.CSPRNG", gnu.javax.crypto.jce.prng.CSPRNGSpi.class.getName()); put("SecureRandom.CSPRNG ImplementedIn", "Software"); put("SecureRandom.ICM", gnu.javax.crypto.jce.prng.ICMRandomSpi.class.getName()); put("SecureRandom.ICM ImplementedIn", "Software"); put("SecureRandom.UMAC-KDF", gnu.javax.crypto.jce.prng.UMacRandomSpi.class.getName()); put("SecureRandom.UMAC-KDF ImplementedIn", "Software"); put("SecureRandom.Fortuna", gnu.javax.crypto.jce.prng.FortunaImpl.class.getName ()); put("SecureRandom.Fortuna ImplementedIn", "Software"); // KeyStore put("KeyStore.GKR", gnu.javax.crypto.jce.keyring.GnuKeyring.class.getName()); put("Alg.Alias.KeyStore.GnuKeyring", "GKR"); // KeyPairGenerator --------------------------------------------------- put("KeyPairGenerator.DH", gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.class.getName()); put("KeyPairGenerator.DH KeySize", "512"); put("KeyPairGenerator.DH ImplementedIn", "Software"); put("Alg.Alias.KeyPairGenerator.DiffieHellman", "DH"); // KeyFactory --------------------------------------------------------- put("KeyFactory.DH", gnu.javax.crypto.jce.sig.DHKeyFactory.class.getName()); put("Alg.Alias,KeyFactory.DiffieHellman", "DH"); return null; } }); }
6,834
public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS ImplementedIn", "Software"); put("Cipher.ARCFOUR", gnu.javax.crypto.jce.cipher.ARCFourSpi.class.getName()); put("Cipher.ARCFOUR ImplementedIn", "Software"); put("Cipher.BLOWFISH", gnu.javax.crypto.jce.cipher.BlowfishSpi.class.getName()); put("Cipher.BLOWFISH ImplementedIn", "Software"); put("Cipher.DES", gnu.javax.crypto.jce.cipher.DESSpi.class.getName()); put("Cipher.DES ImplementedIn", "Software"); put("Cipher.KHAZAD", gnu.javax.crypto.jce.cipher.KhazadSpi.class.getName()); put("Cipher.KHAZAD ImplementedIn", "Software"); put("Cipher.NULL", gnu.javax.crypto.jce.cipher.NullCipherSpi.class.getName()); put("Cipher.NULL ImplementedIn", "Software"); put("Cipher.AES", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.AES ImplementedIn", "Software"); put("Cipher.RIJNDAEL", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.RIJNDAEL ImplementedIn", "Software"); put("Cipher.SERPENT", gnu.javax.crypto.jce.cipher.SerpentSpi.class.getName()); put("Cipher.SERPENT ImplementedIn", "Software"); put("Cipher.SQUARE", gnu.javax.crypto.jce.cipher.SquareSpi.class.getName()); put("Cipher.SQUARE ImplementedIn", "Software"); put("Cipher.TRIPLEDES", gnu.javax.crypto.jce.cipher.TripleDESSpi.class.getName()); put("Cipher.TRIPLEDES ImplementedIn", "Software"); put("Cipher.TWOFISH", gnu.javax.crypto.jce.cipher.TwofishSpi.class.getName()); put("Cipher.TWOFISH ImplementedIn", "Software"); put("Cipher.CAST5", gnu.javax.crypto.jce.cipher.Cast5Spi.class.getName()); put("Cipher.CAST5 ImplementedIn", "Software"); // PBES2 ciphers. put("Cipher.PBEWithHMacHavalAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.AES.class.getName()); put("Cipher.PBEWithHMacHavalAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Anubis.class.getName()); put( "Cipher.PBEWithHMacHavalAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Blowfish.class.getName()); put("Cipher.PBEWithHMacHavalAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Cast5.class.getName()); put("Cipher.PBEWithHMacHavalAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.DES.class.getName()); put("Cipher.PBEWithHMacHavalAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Khazad.class.getName()); put("Cipher.PBEWithHMacHavalAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Serpent.class.getName()); put("Cipher.PBEWithHMacHavalAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Square.class.getName()); put( "Cipher.PBEWithHMacHavalAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.TripleDES.class.getName()); put("Cipher.PBEWithHMacHavalAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Twofish.class.getName()); put("Cipher.PBEWithHMacMD2AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.AES.class.getName()); put("Cipher.PBEWithHMacMD2AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Anubis.class.getName()); put("Cipher.PBEWithHMacMD2AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD2AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Cast5.class.getName()); put("Cipher.PBEWithHMacMD2AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.DES.class.getName()); put("Cipher.PBEWithHMacMD2AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Khazad.class.getName()); put("Cipher.PBEWithHMacMD2AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Serpent.class.getName()); put("Cipher.PBEWithHMacMD2AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Square.class.getName()); put("Cipher.PBEWithHMacMD2AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD2AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Twofish.class.getName()); put("Cipher.PBEWithHMacMD4AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.AES.class.getName()); put("Cipher.PBEWithHMacMD4AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Anubis.class.getName()); put("Cipher.PBEWithHMacMD4AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD4AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Cast5.class.getName()); put("Cipher.PBEWithHMacMD4AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.DES.class.getName()); put("Cipher.PBEWithHMacMD4AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Khazad.class.getName()); put("Cipher.PBEWithHMacMD4AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Serpent.class.getName()); put("Cipher.PBEWithHMacMD4AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Square.class.getName()); put("Cipher.PBEWithHMacMD4AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD4AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Twofish.class.getName()); put("Cipher.PBEWithHMacMD5AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.AES.class.getName()); put("Cipher.PBEWithHMacMD5AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Anubis.class.getName()); put("Cipher.PBEWithHMacMD5AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD5AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Cast5.class.getName()); put("Cipher.PBEWithHMacMD5AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.DES.class.getName()); put("Cipher.PBEWithHMacMD5AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Khazad.class.getName()); put("Cipher.PBEWithHMacMD5AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Serpent.class.getName()); put("Cipher.PBEWithHMacMD5AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Square.class.getName()); put("Cipher.PBEWithHMacMD5AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD5AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA1AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.AES.class.getName()); put("Cipher.PBEWithHMacSHA1AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Anubis.class.getName()); put("Cipher.PBEWithHMacSHA1AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA1AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA1AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.DES.class.getName()); put("Cipher.PBEWithHMacSHA1AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Khazad.class.getName()); put("Cipher.PBEWithHMacSHA1AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA1AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Square.class.getName()); put( "Cipher.PBEWithHMacSHA1AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.TripleDES.class.getName()); put("Cipher.PBEWithHMacSHA1AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA256AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.AES.class.getName()); put("Cipher.PBEWithHMacSHA256AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA256AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA256AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA256AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.DES.class.getName()); put("Cipher.PBEWithHMacSHA256AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA256AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA256AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Square.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA384AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.AES.class.getName()); put("Cipher.PBEWithHMacSHA384AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA384AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA384AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA384AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.DES.class.getName()); put("Cipher.PBEWithHMacSHA384AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA384AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA384AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Square.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA512AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.AES.class.getName()); put("Cipher.PBEWithHMacSHA512AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA512AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA512AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA512AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.DES.class.getName()); put("Cipher.PBEWithHMacSHA512AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA512AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA512AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Square.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Twofish.class.getName()); put("Cipher.PBEWithHMacTigerAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.AES.class.getName()); put("Cipher.PBEWithHMacTigerAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Anubis.class.getName()); put( "Cipher.PBEWithHMacTigerAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Blowfish.class.getName()); put("Cipher.PBEWithHMacTigerAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Cast5.class.getName()); put("Cipher.PBEWithHMacTigerAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.DES.class.getName()); put("Cipher.PBEWithHMacTigerAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Khazad.class.getName()); put("Cipher.PBEWithHMacTigerAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Serpent.class.getName()); put("Cipher.PBEWithHMacTigerAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Square.class.getName()); put( "Cipher.PBEWithHMacTigerAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.TripleDES.class.getName()); put("Cipher.PBEWithHMacTigerAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Twofish.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.AES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Anubis.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Blowfish.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Cast5.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.DES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Khazad.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Serpent.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Square.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.TripleDES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Twofish.class.getName()); // SecretKeyFactory interface to PBKDF2. put( "SecretKeyFactory.PBKDF2WithHMacHaval", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacHaval.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD2", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD2.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD4", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD4.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD5", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD5.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA1", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA1.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA256", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA256.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA384", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA384.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA512", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA512.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacTiger", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacTiger.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacWhirlpool", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacWhirlpool.class.getName()); // Simple SecretKeyFactory implementations. put("SecretKeyFactory.Anubis", gnu.javax.crypto.jce.key.AnubisSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Blowfish", gnu.javax.crypto.jce.key.BlowfishSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Cast5", gnu.javax.crypto.jce.key.Cast5SecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.DES", gnu.javax.crypto.jce.key.DESSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Khazad", gnu.javax.crypto.jce.key.KhazadSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Rijndael", gnu.javax.crypto.jce.key.RijndaelSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Serpent", gnu.javax.crypto.jce.key.SerpentSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Square", gnu.javax.crypto.jce.key.SquareSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.TripleDES", gnu.javax.crypto.jce.key.DESedeSecretKeyFactoryImpl.class.getName()); put("Alg.Alias.SecretKeyFactory.AES", "Rijndael"); put("Alg.Alias.SecretKeyFactory.DESede", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3-DES", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3DES", "TripleDES"); put("AlgorithmParameters.BlockCipherParameters", gnu.javax.crypto.jce.params.BlockCipherParameters.class.getName()); // KeyGenerator Adapter implementations put("KeyGenerator.Anubis", gnu.javax.crypto.jce.key.AnubisKeyGeneratorImpl.class.getName()); put("KeyGenerator.Blowfish", gnu.javax.crypto.jce.key.BlowfishKeyGeneratorImpl.class.getName()); put("KeyGenerator.Cast5", gnu.javax.crypto.jce.key.Cast5KeyGeneratorImpl.class.getName()); put("KeyGenerator.DES", gnu.javax.crypto.jce.key.DESKeyGeneratorImpl.class.getName()); put("KeyGenerator.Khazad", gnu.javax.crypto.jce.key.KhazadKeyGeneratorImpl.class.getName()); put("KeyGenerator.Rijndael", gnu.javax.crypto.jce.key.RijndaelKeyGeneratorImpl.class.getName()); put("KeyGenerator.Serpent", gnu.javax.crypto.jce.key.SerpentKeyGeneratorImpl.class.getName()); put("KeyGenerator.Square", gnu.javax.crypto.jce.key.SquareKeyGeneratorImpl.class.getName()); put("KeyGenerator.TripleDES", gnu.javax.crypto.jce.key.TripleDESKeyGeneratorImpl.class.getName()); put("Alg.Alias.KeyGenerator.AES", "Rijndael"); put("Alg.Alias.KeyGenerator.DESede", "TripleDES"); put("Alg.Alias.KeyGenerator.3-DES", "TripleDES"); put("Alg.Alias.KeyGenerator.3DES", "TripleDES"); // MAC put("Mac.HMAC-MD2", gnu.javax.crypto.jce.mac.HMacMD2Spi.class.getName()); put("Mac.HMAC-MD4", gnu.javax.crypto.jce.mac.HMacMD4Spi.class.getName()); put("Mac.HMAC-MD5", gnu.javax.crypto.jce.mac.HMacMD5Spi.class.getName()); put("Mac.HMAC-RIPEMD128", gnu.javax.crypto.jce.mac.HMacRipeMD128Spi.class.getName()); put("Mac.HMAC-RIPEMD160", gnu.javax.crypto.jce.mac.HMacRipeMD160Spi.class.getName()); put("Mac.HMAC-SHA160", gnu.javax.crypto.jce.mac.HMacSHA160Spi.class.getName()); put("Mac.HMAC-SHA256", gnu.javax.crypto.jce.mac.HMacSHA256Spi.class.getName()); put("Mac.HMAC-SHA384", gnu.javax.crypto.jce.mac.HMacSHA384Spi.class.getName()); put("Mac.HMAC-SHA512", gnu.javax.crypto.jce.mac.HMacSHA512Spi.class.getName()); put("Mac.HMAC-TIGER", gnu.javax.crypto.jce.mac.HMacTigerSpi.class.getName()); put("Mac.HMAC-HAVAL", gnu.javax.crypto.jce.mac.HMacHavalSpi.class.getName()); put("Mac.HMAC-WHIRLPOOL", gnu.javax.crypto.jce.mac.HMacWhirlpoolSpi.class.getName()); put("Mac.TMMH16", gnu.javax.crypto.jce.mac.TMMH16Spi.class.getName()); put("Mac.UHASH32", gnu.javax.crypto.jce.mac.UHash32Spi.class.getName()); put("Mac.UMAC32", gnu.javax.crypto.jce.mac.UMac32Spi.class.getName()); put("Mac.OMAC-ANUBIS", gnu.javax.crypto.jce.mac.OMacAnubisImpl.class.getName()); put("Mac.OMAC-BLOWFISH", gnu.javax.crypto.jce.mac.OMacBlowfishImpl.class.getName()); put("Mac.OMAC-CAST5", gnu.javax.crypto.jce.mac.OMacCast5Impl.class.getName()); put("Mac.OMAC-DES", gnu.javax.crypto.jce.mac.OMacDESImpl.class.getName()); put("Mac.OMAC-KHAZAD", gnu.javax.crypto.jce.mac.OMacKhazadImpl.class.getName()); put("Mac.OMAC-RIJNDAEL", gnu.javax.crypto.jce.mac.OMacRijndaelImpl.class.getName()); put("Mac.OMAC-SERPENT", gnu.javax.crypto.jce.mac.OMacSerpentImpl.class.getName()); put("Mac.OMAC-SQUARE", gnu.javax.crypto.jce.mac.OMacSquareImpl.class.getName()); put("Mac.OMAC-TRIPLEDES", gnu.javax.crypto.jce.mac.OMacTripleDESImpl.class.getName()); put("Mac.OMAC-TWOFISH", gnu.javax.crypto.jce.mac.OMacTwofishImpl.class.getName()); // Aliases put("Alg.Alias.AlgorithmParameters.AES", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.BLOWFISH", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.ANUBIS", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.KHAZAD", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.NULL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.RIJNDAEL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SERPENT", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SQUARE", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.TWOFISH", "BlockCipherParameters"); put("Alg.Alias.Cipher.RC4", "ARCFOUR"); put("Alg.Alias.Cipher.3-DES", "TRIPLEDES"); put("Alg.Alias.Cipher.3DES", "TRIPLEDES"); put("Alg.Alias.Cipher.DES-EDE", "TRIPLEDES"); put("Alg.Alias.Cipher.DESede", "TRIPLEDES"); put("Alg.Alias.Cipher.CAST128", "CAST5"); put("Alg.Alias.Cipher.CAST-128", "CAST5"); put("Alg.Alias.Mac.HMAC-SHS", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA1", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-160", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-256", "HMAC-SHA256"); put("Alg.Alias.Mac.HMAC-SHA-384", "HMAC-SHA384"); put("Alg.Alias.Mac.HMAC-SHA-512", "HMAC-SHA512"); put("Alg.Alias.Mac.HMAC-RIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HMAC-RIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.OMAC-AES", "OMAC-RIJNDAEL"); put("Alg.Alias.Mac.OMAC-3DES", "OMAC-3DES"); put("Alg.Alias.Mac.HmacMD4", "HMAC-MD4"); put("Alg.Alias.Mac.HmacMD5", "HMAC-MD5"); put("Alg.Alias.Mac.HmacSHA-1", "HMAC-SHA-1"); put("Alg.Alias.Mac.HmacSHA1", "HMAC-SHA1"); put("Alg.Alias.Mac.HmacSHA-160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA-256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA-384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA-512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacSHA512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacRIPEMD128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacRIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacTiger", "HMAC-TIGER"); put("Alg.Alias.Mac.HmacHaval", "HMAC-HAVAL"); put("Alg.Alias.Mac.HmacWhirlpool", "HMAC-WHIRLPOOL"); // KeyAgreement put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); // Cipher put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5"); // SecureRandom put("SecureRandom.ARCFOUR", gnu.javax.crypto.jce.prng.ARCFourRandomSpi.class.getName()); put("SecureRandom.ARCFOUR ImplementedIn", "Software"); put("SecureRandom.CSPRNG", gnu.javax.crypto.jce.prng.CSPRNGSpi.class.getName()); put("SecureRandom.CSPRNG ImplementedIn", "Software"); put("SecureRandom.ICM", gnu.javax.crypto.jce.prng.ICMRandomSpi.class.getName()); put("SecureRandom.ICM ImplementedIn", "Software"); put("SecureRandom.UMAC-KDF", gnu.javax.crypto.jce.prng.UMacRandomSpi.class.getName()); put("SecureRandom.UMAC-KDF ImplementedIn", "Software"); put("SecureRandom.Fortuna", gnu.javax.crypto.jce.prng.FortunaImpl.class.getName ()); put("SecureRandom.Fortuna ImplementedIn", "Software"); // KeyStore put("KeyStore.GKR", gnu.javax.crypto.jce.keyring.GnuKeyring.class.getName()); put("Alg.Alias.KeyStore.GnuKeyring", "GKR"); // KeyPairGenerator --------------------------------------------------- put("KeyPairGenerator.DH", gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.class.getName()); put("KeyPairGenerator.DH KeySize", "512"); put("KeyPairGenerator.DH ImplementedIn", "Software"); put("Alg.Alias.KeyPairGenerator.DiffieHellman", "DH"); // KeyFactory --------------------------------------------------------- put("KeyFactory.DH", gnu.javax.crypto.jce.sig.DHKeyFactory.class.getName()); put("Alg.Alias,KeyFactory.DiffieHellman", "DH"); return null; }
public Object run() { // Cipher put("Cipher.ANUBIS", gnu.javax.crypto.jce.cipher.AnubisSpi.class.getName()); put("Cipher.ANUBIS ImplementedIn", "Software"); put("Cipher.ARCFOUR", gnu.javax.crypto.jce.cipher.ARCFourSpi.class.getName()); put("Cipher.ARCFOUR ImplementedIn", "Software"); put("Cipher.BLOWFISH", gnu.javax.crypto.jce.cipher.BlowfishSpi.class.getName()); put("Cipher.BLOWFISH ImplementedIn", "Software"); put("Cipher.DES", gnu.javax.crypto.jce.cipher.DESSpi.class.getName()); put("Cipher.DES ImplementedIn", "Software"); put("Cipher.KHAZAD", gnu.javax.crypto.jce.cipher.KhazadSpi.class.getName()); put("Cipher.KHAZAD ImplementedIn", "Software"); put("Cipher.NULL", gnu.javax.crypto.jce.cipher.NullCipherSpi.class.getName()); put("Cipher.NULL ImplementedIn", "Software"); put("Cipher.AES", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.AES ImplementedIn", "Software"); put("Cipher.RIJNDAEL", gnu.javax.crypto.jce.cipher.RijndaelSpi.class.getName()); put("Cipher.RIJNDAEL ImplementedIn", "Software"); put("Cipher.SERPENT", gnu.javax.crypto.jce.cipher.SerpentSpi.class.getName()); put("Cipher.SERPENT ImplementedIn", "Software"); put("Cipher.SQUARE", gnu.javax.crypto.jce.cipher.SquareSpi.class.getName()); put("Cipher.SQUARE ImplementedIn", "Software"); put("Cipher.TRIPLEDES", gnu.javax.crypto.jce.cipher.TripleDESSpi.class.getName()); put("Cipher.TRIPLEDES ImplementedIn", "Software"); put("Cipher.TWOFISH", gnu.javax.crypto.jce.cipher.TwofishSpi.class.getName()); put("Cipher.TWOFISH ImplementedIn", "Software"); put("Cipher.CAST5", gnu.javax.crypto.jce.cipher.Cast5Spi.class.getName()); put("Cipher.CAST5 ImplementedIn", "Software"); // PBES2 ciphers. put("Cipher.PBEWithHMacHavalAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.AES.class.getName()); put("Cipher.PBEWithHMacHavalAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Anubis.class.getName()); put( "Cipher.PBEWithHMacHavalAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Blowfish.class.getName()); put("Cipher.PBEWithHMacHavalAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Cast5.class.getName()); put("Cipher.PBEWithHMacHavalAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.DES.class.getName()); put("Cipher.PBEWithHMacHavalAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Khazad.class.getName()); put("Cipher.PBEWithHMacHavalAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Serpent.class.getName()); put("Cipher.PBEWithHMacHavalAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Square.class.getName()); put( "Cipher.PBEWithHMacHavalAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.TripleDES.class.getName()); put("Cipher.PBEWithHMacHavalAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacHaval.Twofish.class.getName()); put("Cipher.PBEWithHMacMD2AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.AES.class.getName()); put("Cipher.PBEWithHMacMD2AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Anubis.class.getName()); put("Cipher.PBEWithHMacMD2AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD2AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Cast5.class.getName()); put("Cipher.PBEWithHMacMD2AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.DES.class.getName()); put("Cipher.PBEWithHMacMD2AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Khazad.class.getName()); put("Cipher.PBEWithHMacMD2AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Serpent.class.getName()); put("Cipher.PBEWithHMacMD2AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Square.class.getName()); put("Cipher.PBEWithHMacMD2AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD2AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD2.Twofish.class.getName()); put("Cipher.PBEWithHMacMD4AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.AES.class.getName()); put("Cipher.PBEWithHMacMD4AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Anubis.class.getName()); put("Cipher.PBEWithHMacMD4AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD4AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Cast5.class.getName()); put("Cipher.PBEWithHMacMD4AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.DES.class.getName()); put("Cipher.PBEWithHMacMD4AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Khazad.class.getName()); put("Cipher.PBEWithHMacMD4AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Serpent.class.getName()); put("Cipher.PBEWithHMacMD4AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Square.class.getName()); put("Cipher.PBEWithHMacMD4AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD4AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD4.Twofish.class.getName()); put("Cipher.PBEWithHMacMD5AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.AES.class.getName()); put("Cipher.PBEWithHMacMD5AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Anubis.class.getName()); put("Cipher.PBEWithHMacMD5AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Blowfish.class.getName()); put("Cipher.PBEWithHMacMD5AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Cast5.class.getName()); put("Cipher.PBEWithHMacMD5AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.DES.class.getName()); put("Cipher.PBEWithHMacMD5AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Khazad.class.getName()); put("Cipher.PBEWithHMacMD5AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Serpent.class.getName()); put("Cipher.PBEWithHMacMD5AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Square.class.getName()); put("Cipher.PBEWithHMacMD5AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.TripleDES.class.getName()); put("Cipher.PBEWithHMacMD5AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacMD5.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA1AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.AES.class.getName()); put("Cipher.PBEWithHMacSHA1AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Anubis.class.getName()); put("Cipher.PBEWithHMacSHA1AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA1AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA1AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.DES.class.getName()); put("Cipher.PBEWithHMacSHA1AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Khazad.class.getName()); put("Cipher.PBEWithHMacSHA1AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA1AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Square.class.getName()); put( "Cipher.PBEWithHMacSHA1AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.TripleDES.class.getName()); put("Cipher.PBEWithHMacSHA1AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA1.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA256AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.AES.class.getName()); put("Cipher.PBEWithHMacSHA256AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA256AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA256AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA256AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.DES.class.getName()); put("Cipher.PBEWithHMacSHA256AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA256AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA256AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Square.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA256AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA256.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA384AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.AES.class.getName()); put("Cipher.PBEWithHMacSHA384AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA384AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA384AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA384AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.DES.class.getName()); put("Cipher.PBEWithHMacSHA384AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA384AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA384AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Square.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA384AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA384.Twofish.class.getName()); put("Cipher.PBEWithHMacSHA512AndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.AES.class.getName()); put("Cipher.PBEWithHMacSHA512AndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Anubis.class.getName()); put( "Cipher.PBEWithHMacSHA512AndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Blowfish.class.getName()); put("Cipher.PBEWithHMacSHA512AndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Cast5.class.getName()); put("Cipher.PBEWithHMacSHA512AndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.DES.class.getName()); put("Cipher.PBEWithHMacSHA512AndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Khazad.class.getName()); put( "Cipher.PBEWithHMacSHA512AndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Serpent.class.getName()); put("Cipher.PBEWithHMacSHA512AndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Square.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.TripleDES.class.getName()); put( "Cipher.PBEWithHMacSHA512AndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacSHA512.Twofish.class.getName()); put("Cipher.PBEWithHMacTigerAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.AES.class.getName()); put("Cipher.PBEWithHMacTigerAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Anubis.class.getName()); put( "Cipher.PBEWithHMacTigerAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Blowfish.class.getName()); put("Cipher.PBEWithHMacTigerAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Cast5.class.getName()); put("Cipher.PBEWithHMacTigerAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.DES.class.getName()); put("Cipher.PBEWithHMacTigerAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Khazad.class.getName()); put("Cipher.PBEWithHMacTigerAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Serpent.class.getName()); put("Cipher.PBEWithHMacTigerAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Square.class.getName()); put( "Cipher.PBEWithHMacTigerAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.TripleDES.class.getName()); put("Cipher.PBEWithHMacTigerAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacTiger.Twofish.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndAES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.AES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndAnubis", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Anubis.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndBlowfish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Blowfish.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndCast5", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Cast5.class.getName()); put("Cipher.PBEWithHMacWhirlpoolAndDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.DES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndKhazad", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Khazad.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSerpent", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Serpent.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndSquare", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Square.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTripleDES", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.TripleDES.class.getName()); put( "Cipher.PBEWithHMacWhirlpoolAndTwofish", gnu.javax.crypto.jce.cipher.PBES2.HMacWhirlpool.Twofish.class.getName()); // SecretKeyFactory interface to PBKDF2. put( "SecretKeyFactory.PBKDF2WithHMacHaval", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacHaval.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD2", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD2.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD4", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD4.class.getName()); put("SecretKeyFactory.PBKDF2WithHMacMD5", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacMD5.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA1", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA1.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA256", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA256.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA384", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA384.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacSHA512", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacSHA512.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacTiger", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacTiger.class.getName()); put( "SecretKeyFactory.PBKDF2WithHMacWhirlpool", gnu.javax.crypto.jce.PBKDF2SecretKeyFactory.HMacWhirlpool.class.getName()); // Simple SecretKeyFactory implementations. put("SecretKeyFactory.Anubis", gnu.javax.crypto.jce.key.AnubisSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Blowfish", gnu.javax.crypto.jce.key.BlowfishSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Cast5", gnu.javax.crypto.jce.key.Cast5SecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.DES", gnu.javax.crypto.jce.key.DESSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Khazad", gnu.javax.crypto.jce.key.KhazadSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Rijndael", gnu.javax.crypto.jce.key.RijndaelSecretKeyFactoryImpl.class.getName()); put( "SecretKeyFactory.Serpent", gnu.javax.crypto.jce.key.SerpentSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.Square", gnu.javax.crypto.jce.key.SquareSecretKeyFactoryImpl.class.getName()); put("SecretKeyFactory.TripleDES", gnu.javax.crypto.jce.key.DESedeSecretKeyFactoryImpl.class.getName()); put("Alg.Alias.SecretKeyFactory.AES", "Rijndael"); put("Alg.Alias.SecretKeyFactory.DESede", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3-DES", "TripleDES"); put("Alg.Alias.SecretKeyFactory.3DES", "TripleDES"); put("AlgorithmParameters.BlockCipherParameters", gnu.javax.crypto.jce.params.BlockCipherParameters.class.getName()); // KeyGenerator Adapter implementations put("KeyGenerator.Anubis", gnu.javax.crypto.jce.key.AnubisKeyGeneratorImpl.class.getName()); put("KeyGenerator.Blowfish", gnu.javax.crypto.jce.key.BlowfishKeyGeneratorImpl.class.getName()); put("KeyGenerator.Cast5", gnu.javax.crypto.jce.key.Cast5KeyGeneratorImpl.class.getName()); put("KeyGenerator.DES", gnu.javax.crypto.jce.key.DESKeyGeneratorImpl.class.getName()); put("KeyGenerator.Khazad", gnu.javax.crypto.jce.key.KhazadKeyGeneratorImpl.class.getName()); put("KeyGenerator.Rijndael", gnu.javax.crypto.jce.key.RijndaelKeyGeneratorImpl.class.getName()); put("KeyGenerator.Serpent", gnu.javax.crypto.jce.key.SerpentKeyGeneratorImpl.class.getName()); put("KeyGenerator.Square", gnu.javax.crypto.jce.key.SquareKeyGeneratorImpl.class.getName()); put("KeyGenerator.TripleDES", gnu.javax.crypto.jce.key.TripleDESKeyGeneratorImpl.class.getName()); put("Alg.Alias.KeyGenerator.AES", "Rijndael"); put("Alg.Alias.KeyGenerator.DESede", "TripleDES"); put("Alg.Alias.KeyGenerator.3-DES", "TripleDES"); put("Alg.Alias.KeyGenerator.3DES", "TripleDES"); // MAC put("Mac.HMAC-MD2", gnu.javax.crypto.jce.mac.HMacMD2Spi.class.getName()); put("Mac.HMAC-MD4", gnu.javax.crypto.jce.mac.HMacMD4Spi.class.getName()); put("Mac.HMAC-MD5", gnu.javax.crypto.jce.mac.HMacMD5Spi.class.getName()); put("Mac.HMAC-RIPEMD128", gnu.javax.crypto.jce.mac.HMacRipeMD128Spi.class.getName()); put("Mac.HMAC-RIPEMD160", gnu.javax.crypto.jce.mac.HMacRipeMD160Spi.class.getName()); put("Mac.HMAC-SHA160", gnu.javax.crypto.jce.mac.HMacSHA160Spi.class.getName()); put("Mac.HMAC-SHA256", gnu.javax.crypto.jce.mac.HMacSHA256Spi.class.getName()); put("Mac.HMAC-SHA384", gnu.javax.crypto.jce.mac.HMacSHA384Spi.class.getName()); put("Mac.HMAC-SHA512", gnu.javax.crypto.jce.mac.HMacSHA512Spi.class.getName()); put("Mac.HMAC-TIGER", gnu.javax.crypto.jce.mac.HMacTigerSpi.class.getName()); put("Mac.HMAC-HAVAL", gnu.javax.crypto.jce.mac.HMacHavalSpi.class.getName()); put("Mac.HMAC-WHIRLPOOL", gnu.javax.crypto.jce.mac.HMacWhirlpoolSpi.class.getName()); put("Mac.TMMH16", gnu.javax.crypto.jce.mac.TMMH16Spi.class.getName()); put("Mac.UHASH32", gnu.javax.crypto.jce.mac.UHash32Spi.class.getName()); put("Mac.UMAC32", gnu.javax.crypto.jce.mac.UMac32Spi.class.getName()); put("Mac.OMAC-ANUBIS", gnu.javax.crypto.jce.mac.OMacAnubisImpl.class.getName()); put("Mac.OMAC-BLOWFISH", gnu.javax.crypto.jce.mac.OMacBlowfishImpl.class.getName()); put("Mac.OMAC-CAST5", gnu.javax.crypto.jce.mac.OMacCast5Impl.class.getName()); put("Mac.OMAC-DES", gnu.javax.crypto.jce.mac.OMacDESImpl.class.getName()); put("Mac.OMAC-KHAZAD", gnu.javax.crypto.jce.mac.OMacKhazadImpl.class.getName()); put("Mac.OMAC-RIJNDAEL", gnu.javax.crypto.jce.mac.OMacRijndaelImpl.class.getName()); put("Mac.OMAC-SERPENT", gnu.javax.crypto.jce.mac.OMacSerpentImpl.class.getName()); put("Mac.OMAC-SQUARE", gnu.javax.crypto.jce.mac.OMacSquareImpl.class.getName()); put("Mac.OMAC-TRIPLEDES", gnu.javax.crypto.jce.mac.OMacTripleDESImpl.class.getName()); put("Mac.OMAC-TWOFISH", gnu.javax.crypto.jce.mac.OMacTwofishImpl.class.getName()); // Aliases put("Alg.Alias.AlgorithmParameters.AES", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.BLOWFISH", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.ANUBIS", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.KHAZAD", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.NULL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.RIJNDAEL", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SERPENT", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.SQUARE", "BlockCipherParameters"); put("Alg.Alias.AlgorithmParameters.TWOFISH", "BlockCipherParameters"); put("Alg.Alias.Cipher.RC4", "ARCFOUR"); put("Alg.Alias.Cipher.3-DES", "TRIPLEDES"); put("Alg.Alias.Cipher.3DES", "TRIPLEDES"); put("Alg.Alias.Cipher.DES-EDE", "TRIPLEDES"); put("Alg.Alias.Cipher.DESede", "TRIPLEDES"); put("Alg.Alias.Cipher.CAST128", "CAST5"); put("Alg.Alias.Cipher.CAST-128", "CAST5"); put("Alg.Alias.Mac.HMAC-SHS", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA1", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-160", "HMAC-SHA160"); put("Alg.Alias.Mac.HMAC-SHA-256", "HMAC-SHA256"); put("Alg.Alias.Mac.HMAC-SHA-384", "HMAC-SHA384"); put("Alg.Alias.Mac.HMAC-SHA-512", "HMAC-SHA512"); put("Alg.Alias.Mac.HMAC-RIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HMAC-RIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.OMAC-AES", "OMAC-RIJNDAEL"); put("Alg.Alias.Mac.OMAC-3DES", "OMAC-3DES"); put("Alg.Alias.Mac.HmacMD4", "HMAC-MD4"); put("Alg.Alias.Mac.HmacMD5", "HMAC-MD5"); put("Alg.Alias.Mac.HmacSHA-1", "HMAC-SHA-1"); put("Alg.Alias.Mac.HmacSHA1", "HMAC-SHA1"); put("Alg.Alias.Mac.HmacSHA-160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA160", "HMAC-SHA-160"); put("Alg.Alias.Mac.HmacSHA-256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA256", "HMAC-SHA-256"); put("Alg.Alias.Mac.HmacSHA-384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA384", "HMAC-SHA-384"); put("Alg.Alias.Mac.HmacSHA-512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacSHA512", "HMAC-SHA-512"); put("Alg.Alias.Mac.HmacRIPEMD128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD-128", "HMAC-RIPEMD128"); put("Alg.Alias.Mac.HmacRIPEMD160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacRIPEMD-160", "HMAC-RIPEMD160"); put("Alg.Alias.Mac.HmacTiger", "HMAC-TIGER"); put("Alg.Alias.Mac.HmacHaval", "HMAC-HAVAL"); put("Alg.Alias.Mac.HmacWhirlpool", "HMAC-WHIRLPOOL"); // KeyAgreement put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); // Cipher put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5"); // SecureRandom put("SecureRandom.ARCFOUR", gnu.javax.crypto.jce.prng.ARCFourRandomSpi.class.getName()); put("SecureRandom.ARCFOUR ImplementedIn", "Software"); put("SecureRandom.CSPRNG", gnu.javax.crypto.jce.prng.CSPRNGSpi.class.getName()); put("SecureRandom.CSPRNG ImplementedIn", "Software"); put("SecureRandom.ICM", gnu.javax.crypto.jce.prng.ICMRandomSpi.class.getName()); put("SecureRandom.ICM ImplementedIn", "Software"); put("SecureRandom.UMAC-KDF", gnu.javax.crypto.jce.prng.UMacRandomSpi.class.getName()); put("SecureRandom.UMAC-KDF ImplementedIn", "Software"); put("SecureRandom.Fortuna", gnu.javax.crypto.jce.prng.FortunaImpl.class.getName ()); put("SecureRandom.Fortuna ImplementedIn", "Software"); // KeyStore put("KeyStore.GKR", gnu.javax.crypto.jce.keyring.GnuKeyring.class.getName()); put("Alg.Alias.KeyStore.GnuKeyring", "GKR"); // KeyPairGenerator --------------------------------------------------- put("KeyPairGenerator.DH", gnu.javax.crypto.jce.sig.DHKeyPairGeneratorSpi.class.getName()); put("KeyPairGenerator.DH KeySize", "512"); put("KeyPairGenerator.DH ImplementedIn", "Software"); put("Alg.Alias.KeyPairGenerator.DiffieHellman", "DH"); // KeyFactory --------------------------------------------------------- put("KeyFactory.DH", gnu.javax.crypto.jce.sig.DHKeyFactory.class.getName()); put("Alg.Alias,KeyFactory.DiffieHellman", "DH"); return null; }
6,836
public AlignmentAction(String nm, int a) { super("TODO"); // TODO }
public AlignmentAction(String nm, int a) { super(nm); this.a = a; // TODO }
6,842
public FontFamilyAction(String nm, String family) { super("TODO"); // TODO }
public FontFamilyAction(String nm, String family) { super(nm); this.family = family; // TODO }
6,845
public FontSizeAction(String nm, int size) { super("TODO"); // TODO }
public FontSizeAction(String nm, int size) { super(nm); this.size = size; // TODO }
6,847
public ForegroundAction(String nm, Color fg) { super("TODO"); // TODO }
public ForegroundAction(String nm, Color fg) { super(nm); this.fg = fg; // TODO }
6,849
protected final JEditorPane getEditor(ActionEvent event) { return null; // TODO }
protected final JEditorPane getEditor(ActionEvent event) { return (JEditorPane) getTextComponent(event); // TODO }
6,852
protected final StyledDocument getStyledDocument(JEditorPane value0) { return null; // TODO }
protected final StyledDocument getStyledDocument(JEditorPane editor) { return null; // TODO }
6,853
protected final StyledDocument getStyledDocument(JEditorPane value0) { return null; // TODO }
protected final StyledDocument getStyledDocument(JEditorPane value0) { Document doc = editor.getDocument(); if (!(doc instanceof StyledDocument)) throw new AssertionError("The Document for StyledEditorKits is " + "expected to be a StyledDocument."); return (StyledDocument) doc; // TODO }
6,854
protected final StyledEditorKit getStyledEditorKit(JEditorPane value0) { return null; // TODO }
protected final StyledEditorKit getStyledEditorKit(JEditorPane editor) { return null; // TODO }
6,855
protected final StyledEditorKit getStyledEditorKit(JEditorPane value0) { return null; // TODO }
protected final StyledEditorKit getStyledEditorKit(JEditorPane value0) { EditorKit kit = editor.getEditorKit(); if (!(kit instanceof StyledEditorKit)) throw new AssertionError("The EditorKit for StyledDocuments is " + "expected to be a StyledEditorKit."); return (StyledEditorKit) kit; // TODO }
6,856
protected final void setCharacterAttributes(JEditorPane value0, AttributeSet value1, boolean value2) { // TODO }
protected final void setCharacterAttributes(JEditorPane value0, AttributeSet value1, boolean value2) { // TODO }
6,857
protected final void setParagraphAttributes(JEditorPane value0, AttributeSet value1, boolean value2) { // TODO }
protected final void setParagraphAttributes(JEditorPane value0, AttributeSet value1, boolean value2) { // TODO }
6,859
public View create(Element value0) { return null; // TODO }
public View create(Element element) { return null; // TODO }
6,861
public View create(Element value0) { return null; // TODO }
public View create(Element value0) { String name = element.getName(); View view = null; if (name.equals(AbstractDocument.ContentElementName)) view = new LabelView(element); else if (name.equals(AbstractDocument.ParagraphElementName)) view = new ParagraphView(element); else if (name.equals(AbstractDocument.SectionElementName)) view = new BoxView(element); else if (name.equals(StyleConstants.ComponentElementName)) view = new ComponentView(element); else if (name.equals(StyleConstants.IconElementName)) view = new IconView(element); return view; // TODO }
6,862
public Object clone() { return null; // TODO }
public Object clone() { StyledEditorKit clone = (StyledEditorKit) super.clone(); return clone; // TODO }
6,865
public Document createDefaultDocument() { return null; // TODO }
public Document createDefaultDocument() { return new DefaultStyledDocument(); // TODO }
6,866
public Action[] getActions() { return null; // TODO }
public Action[] getActions() { Action[] actions1 = super.getActions(); Action[] myActions = new Action[] { new BoldAction(), new ItalicAction(), new UnderlineAction() }; return TextAction.augmentList(actions1, myActions); // TODO }
6,869
public Element getCharacterAttributeRun() { return null; // TODO }
public Element getCharacterAttributeRun() { return currentRun; // TODO }
6,870
public MutableAttributeSet getInputAttributes() { return null; // TODO }
public MutableAttributeSet getInputAttributes() { return inputAttributes; // TODO }
6,871
public ViewFactory getViewFactory() { return null; // TODO }
public ViewFactory getViewFactory() { if (viewFactory == null) viewFactory = new StyledViewFactory(); return viewFactory; // TODO }
6,872
public String getContentType() { return getEditorKit().getContentType(); }
public final String getContentType() { return getEditorKit().getContentType(); }
6,874
public void setContentType(String type) { if (editorKit != null && editorKit.getContentType().equals(type)) return; EditorKit kit = getEditorKitForContentType(type); if (kit != null) setEditorKit(kit); }
public final void setContentType(String type) { if (editorKit != null && editorKit.getContentType().equals(type)) return; EditorKit kit = getEditorKitForContentType(type); if (kit != null) setEditorKit(kit); }
6,875
public SynchronizedAttributeSet(AttributeSet attributeSet) { if (attributeSet == null) throw new NullPointerException("attributeSet may not be null"); this.set = attributeSet; }
public SynchronizedAttributeSet(AttributeSet attributeSet) { if (attributeSet == null) throw new NullPointerException("attributeSet may not be null"); attrset = attributeSet; }
6,877
public synchronized boolean add(Attribute attribute) { return set.add(attribute); }
public synchronized boolean add(Attribute attribute) { return attrset.add(attribute); }
6,878
public synchronized boolean addAll(AttributeSet attributes) { return set.addAll(attributes); }
public synchronized boolean addAll(AttributeSet attributes) { return attrset.addAll(attributes); }
6,879
public synchronized void clear() { set.clear(); }
public synchronized void clear() { attrset.clear(); }
6,880
public synchronized boolean containsKey(Class category) { return set.containsKey(category); }
public synchronized boolean containsKey(Class category) { return attrset.containsKey(category); }
6,881
public synchronized boolean containsValue(Attribute attribute) { return set.containsValue(attribute); }
public synchronized boolean containsValue(Attribute attribute) { return attrset.containsValue(attribute); }
6,882
public synchronized boolean equals(Object obj) { return set.equals(obj); }
public synchronized boolean equals(Object obj) { return attrset.equals(obj); }
6,883
public synchronized Attribute get(Class interfaceName) { return set.get(interfaceName); }
public synchronized Attribute get(Class interfaceName) { return attrset.get(interfaceName); }
6,884
public synchronized int hashCode() { return set.hashCode(); }
public synchronized int hashCode() { return attrset.hashCode(); }
6,885
public synchronized boolean isEmpty() { return set.isEmpty(); }
public synchronized boolean isEmpty() { return attrset.isEmpty(); }
6,886
public synchronized boolean remove(Class category) { return set.remove(category); }
public synchronized boolean remove(Class category) { return attrset.remove(category); }
6,887
public synchronized int size() { return set.size(); }
public synchronized int size() { return attrset.size(); }
6,888
public synchronized Attribute[] toArray() { return set.toArray(); }
public synchronized Attribute[] toArray() { return attrset.toArray(); }
6,889
public UnmodifiableAttributeSet(AttributeSet attributeSet) { if (attributeSet == null) throw new NullPointerException("attributeSet may not be null"); this.set = attributeSet; }
public UnmodifiableAttributeSet(AttributeSet attributeSet) { if (attributeSet == null) throw new NullPointerException("attributeSet may not be null"); this.attrset = attributeSet; }
6,890
public boolean containsKey(Class category) { return set.containsKey(category); }
public boolean containsKey(Class category) { return attrset.containsKey(category); }
6,891
public boolean containsValue(Attribute attribute) { return set.containsValue(attribute); }
public boolean containsValue(Attribute attribute) { return attrset.containsValue(attribute); }
6,892
public boolean equals(Object obj) { return set.equals(obj); }
public boolean equals(Object obj) { return attrset.equals(obj); }
6,893
public Attribute get(Class interfaceName) { return set.get(interfaceName); }
public Attribute get(Class interfaceName) { return attrset.get(interfaceName); }
6,894
public int hashCode() { return set.hashCode(); }
public int hashCode() { return attrset.hashCode(); }
6,895
public boolean isEmpty() { return set.isEmpty(); }
public boolean isEmpty() { return attrset.isEmpty(); }
6,896
public int size() { return set.size(); }
public int size() { return attrset.size(); }
6,897
public Attribute[] toArray() { return set.toArray(); }
public Attribute[] toArray() { return attrset.toArray(); }
6,898
public void addColumn(TableColumn column) { if (column.getHeaderValue() == null) { String name = getColumnName(column.getModelIndex()); column.setHeaderValue(name); } columnModel.addColumn(column); }
public void addColumn(TableColumn column) { if (column.getHeaderValue() == null) { String name = dataModel.getColumnName(column.getModelIndex()); column.setHeaderValue(name); } columnModel.addColumn(column); }
6,899
public int convertColumnIndexToModel(int vc) { if (vc < 0) return vc; else if (vc > getColumnCount()) return -1; else return columnModel.getColumn(vc).getModelIndex(); }
public int convertColumnIndexToModel(int vc) { if (vc < 0) return vc; else if (vc > getColumnCount()) return -1; else return columnModel.getColumn(vc).getModelIndex(); }
6,901
public String getColumnName(int column) { return dataModel.getColumnName(column); }
public String getColumnName(int column) { int modelColumn = columnModel.getColumn(column).getModelIndex(); return dataModel.getColumnName(modelColumn); }
6,902
public ListSelectionModel getSelectionModel() { if (! rowSelectionAllowed) return null; return selectionModel; }
public ListSelectionModel getSelectionModel() { if (! rowSelectionAllowed) return null; return selectionModel; }
6,903
protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); createDefaultRenderers(); this.defaultEditorsByColumnClass = new Hashtable(); createDefaultEditors(); this.autoResizeMode = AUTO_RESIZE_ALL_COLUMNS; this.rowHeight = 16; this.rowMargin = 1; this.rowSelectionAllowed = true; // this.accessibleContext = new AccessibleJTable(); this.cellEditor = null; this.dragEnabled = false; this.preferredViewportSize = new Dimension(450,400); this.showHorizontalLines = true; this.showVerticalLines = true; this.editingColumn = -1; this.editingRow = -1; setIntercellSpacing(new Dimension(1,1)); }
protected void initializeLocalVars() { setTableHeader(createDefaultTableHeader()); this.autoCreateColumnsFromModel = false; if (columnModel == null) { this.autoCreateColumnsFromModel = true; createColumnsFromModel(); } this.columnModel.addColumnModelListener(this); this.defaultRenderersByColumnClass = new Hashtable(); createDefaultRenderers(); this.defaultEditorsByColumnClass = new Hashtable(); createDefaultEditors(); this.autoResizeMode = AUTO_RESIZE_ALL_COLUMNS; this.rowHeight = 16; this.rowMargin = 1; this.rowSelectionAllowed = true; // this.accessibleContext = new AccessibleJTable(); this.cellEditor = null; this.dragEnabled = true; this.preferredViewportSize = new Dimension(450,400); this.showHorizontalLines = true; this.showVerticalLines = true; this.editingColumn = -1; this.editingRow = -1; setIntercellSpacing(new Dimension(1,1)); }
6,904
public void setAutoCreateColumnsFromModel(boolean a) { autoCreateColumnsFromModel = a; }
public void setAutoCreateColumnsFromModel(boolean autoCreate) { autoCreateColumnsFromModel = a; }
6,905
public void setAutoCreateColumnsFromModel(boolean a) { autoCreateColumnsFromModel = a; }
public void setAutoCreateColumnsFromModel(boolean a) { if (autoCreateColumnsFromModel != autoCreate) { autoCreateColumnsFromModel = autoCreate; if (autoCreate) createDefaultColumnsFromModel(); } }
6,906
public static ThreadPolicyValue from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { throw new BAD_OPERATION("Invalid enumeration code " + code); } }
public static ThreadPolicyValue from_int(int code) { try { return enume [ code ]; } catch (ArrayIndexOutOfBoundsException ex) { BAD_OPERATION bad = new BAD_OPERATION("Invalid policy code " + code); bad.minor = Minor.PolicyType; throw bad; } }
6,908
public Object run() { return System.getProperty(key, defaultValue); }
public Object run() { return System.getProperty(key, defaultValue); }
6,909
public Token readToken() throws IOException { Token token = null; int c = in.read(); switch(c) { case -1: token = new Token(Token.EOF); break; case '{': token = new Token(Token.LCURLY); break; case '}': token = new Token(Token.RCURLY); break; case '\\': buffer.delete(0, buffer.length()); buffer.append((char) c); token = readControlWord(); break; default: buffer.delete(0, buffer.length()); buffer.append((char) c); token = readText(); break; } return token; }
Token readToken() throws IOException { Token token = null; int c = in.read(); switch(c) { case -1: token = new Token(Token.EOF); break; case '{': token = new Token(Token.LCURLY); break; case '}': token = new Token(Token.RCURLY); break; case '\\': buffer.delete(0, buffer.length()); buffer.append((char) c); token = readControlWord(); break; default: buffer.delete(0, buffer.length()); buffer.append((char) c); token = readText(); break; } return token; }
6,910
public Token readToken() throws IOException { Token token = null; int c = in.read(); switch(c) { case -1: token = new Token(Token.EOF); break; case '{': token = new Token(Token.LCURLY); break; case '}': token = new Token(Token.RCURLY); break; case '\\': buffer.delete(0, buffer.length()); buffer.append((char) c); token = readControlWord(); break; default: buffer.delete(0, buffer.length()); buffer.append((char) c); token = readText(); break; } return token; }
public Token readToken() throws IOException { Token token = null; int c = in.read(); switch(c) { case -1: token = new Token(Token.EOF); break; case '{': token = new Token(Token.LCURLY); break; case '}': token = new Token(Token.RCURLY); break; case '\\': buffer.delete(0, buffer.length()); buffer.append((char) c); token = readControlWord(); break; default: buffer.delete(0, buffer.length()); buffer.append((char) c); token = readText(); break; } return token; }
6,911
public Token readToken() throws IOException { Token token = null; int c = in.read(); switch(c) { case -1: token = new Token(Token.EOF); break; case '{': token = new Token(Token.LCURLY); break; case '}': token = new Token(Token.RCURLY); break; case '\\': buffer.delete(0, buffer.length()); buffer.append((char) c); token = readControlWord(); break; default: buffer.delete(0, buffer.length()); buffer.append((char) c); token = readText(); break; } return token; }
public Token readToken() throws IOException { Token token = null; int c = in.read(); switch(c) { case -1: token = new Token(Token.EOF); break; case '{': token = new Token(Token.LCURLY); break; case '}': token = new Token(Token.RCURLY); break; case '\\': buffer.delete(0, buffer.length()); buffer.append((char) c); token = readControlWord(); break; default: buffer.delete(0, buffer.length()); buffer.append((char) c); token = readText(); break; } return token; }
6,912
public AbstractElement(Element p, AttributeSet s) { element_parent = p; attributes = s; }
public AbstractElement(Element p, AttributeSet s) { element_parent = p; AttributeContext ctx = getAttributeContext(); attributes = ctx.getEmptySet(); if (s != null) attributes = ctx.addAttributes(attributes, s); }
6,914
public AttributeSet getAttributes() { return attributes; }
public AttributeSet getAttributes() { return this; }
6,915
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); this.start = start; this.end = end; }
public LeafElement(Element parent, AttributeSet attributes, int start, int end) { super(parent, attributes); this.start = start; this.end = end; }
6,916
public int getEndOffset() { return end; }
public int getEndOffset() { return endPos.getOffset(); }
6,917
public int getStartOffset() { return start; }
public int getStartOffset() { return startPos.getOffset(); }
6,918
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > getLength()) throw new BadLocationException(getText(0, getLength()), offset); return new Position() { public int getOffset() { return offset; } }; }
public Position createPosition(final int offset) throws BadLocationException { if (offset < 0 || offset > getLength()) throw new BadLocationException(getText(0, getLength()), offset); return new Position() { public int getOffset() { return offset; } }; }
6,919
public int getOffset() { return offset; }
public int getOffset() { return offset; }
6,920
public int getOffset() { return getLength(); }
public int getOffset() { return 0; }
6,921
public void render(Runnable r) { }
public void render(Runnable runnable) { }
6,922
public void setDocumentProperties(Dictionary x) { // FIXME: make me thread-safe properties = x; }
public void setDocumentProperties(Dictionary p) { // FIXME: make me thread-safe properties = x; }
6,923
public void setDocumentProperties(Dictionary x) { // FIXME: make me thread-safe properties = x; }
public void setDocumentProperties(Dictionary x) { // FIXME: make me thread-safe properties = p; }
6,924
public void focusLost(FocusEvent e) { hasFocus = false; comboBox.repaint(); popup.hide(); }
public void focusLost(FocusEvent e) { hasFocus = false; comboBox.repaint(); }
6,925
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("orientation")) { incrButton.removeMouseListener(buttonListener); decrButton.removeMouseListener(buttonListener); int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(SOUTH); decrButton = createDecreaseButton(NORTH); break; } incrButton.addMouseListener(buttonListener); decrButton.addMouseListener(buttonListener); calculatePreferredSize(); } scrollbar.repaint(); }
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("model")) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.getPropertyName().equals("orientation")) { incrButton.removeMouseListener(buttonListener); decrButton.removeMouseListener(buttonListener); int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(SOUTH); decrButton = createDecreaseButton(NORTH); break; } incrButton.addMouseListener(buttonListener); decrButton.addMouseListener(buttonListener); calculatePreferredSize(); } }
6,927
public abstract EntityReference createEntityReference(String name, EntityDeclaration declaration);
public abstract EntityReference createEntityReference(String name, String replacementText);
6,928
public EntryRecord(byte[] buff) { this.buff = buff; }
public EntryRecord(byte[] buff) { this.buff = buff; }
6,929
public int getDataLength() { return (int)LittleEndian.getUInt32(buff,10); }
public int getDataLength() { return (int)LittleEndian.getUInt32(buff,10); }
6,930
public String getFileIdentifier() { if(this.isDirectory()) { if(this.getLengthOfFileIdentifier() == 1 && buff[33]== 0x00) return "."; if(this.getLengthOfFileIdentifier() == 1 && buff[33]== 0x01) return ".."; return new String(buff, 33 , this.getLengthOfFileIdentifier()); } return new String(buff, 33 , this.getLengthOfFileIdentifier() - 2); }
public String getFileIdentifier() { if(this.isDirectory()) { if(this.getLengthOfFileIdentifier() == 1 && buff[33]== 0x00) return "."; if(this.getLengthOfFileIdentifier() == 1 && buff[33]== 0x01) return ".."; return new String(buff, 33 , this.getLengthOfFileIdentifier()); } return new String(buff, 33 , this.getLengthOfFileIdentifier() - 2); }
6,931
public int getFileUnitSize() { return buff[26]; }
public int getFileUnitSize() { return buff[26]; }
6,932
public int getFlags() { return buff[25]; }
public int getFlags() { return buff[25]; }
6,933