code
stringlengths
3
1.18M
language
stringclasses
1 value
package cx.hell.android.pdfview; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import android.app.Activity; import android.graphics.Bitmap; import android.os.SystemCl...
Java
package cx.hell.android.lib.view; // #ifdef pro // // import java.util.Collections; // import java.util.HashMap; // import java.util.List; // import java.util.Map; // import java.util.Stack; // // import android.content.Context; // import android.graphics.Color; // import android.util.Log; // import android.view.Vie...
Java
package cx.hell.android.lib.pdf; import java.io.File; import java.io.FileDescriptor; import java.util.List; import cx.hell.android.lib.pagesview.FindResult; // #ifdef pro // import java.util.ArrayList; // import java.util.Stack; // import cx.hell.android.lib.view.TreeView; // import cx.hell.android.lib.v...
Java
package cx.hell.android.lib.pagesview; // you're encouraged to use this piece of code for anything, either commercial or free, // either close-sourced or open-sourced. However, do put a line in your "About" section // saying that you used a code from dairyknight (dairyknight@gmail.com). That's the only request ...
Java
package cx.hell.android.lib.pagesview; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import android.graphics.Rect; import android.util.Log; /** * Find result. */ public class FindResult { /** * Logging tag. */ public static final String TAG = "cx.hell.andr...
Java
package cx.hell.android.lib.pagesview; /** * Tile definition. * Can be used as a key in maps (hashable, comparable). */ public class Tile { /** * X position of tile in pixels. */ private int x; /** * Y position of tile in pixels. */ private int y; private int zoom; private in...
Java
package cx.hell.android.lib.pagesview; public class RenderingException extends Exception { private static final long serialVersionUID = 1010978161527539002L; public RenderingException(String message) { super(message); } }
Java
package cx.hell.android.lib.pagesview; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.graphics.Bitmap; import android.graphics.Canvas; i...
Java
package cx.hell.android.lib.pagesview; import java.util.Map; import android.graphics.Bitmap; /** * Allow renderer to notify view that new bitmaps are ready. * Implemented by PagesView. */ public interface OnImageRenderedListener { void onImagesRendered(Map<Tile,Bitmap> renderedImages); void onRender...
Java
package cx.hell.android.lib.pagesview; import java.util.Collection; import android.graphics.Bitmap; /** * Provide content of pages rendered by PagesView. */ public abstract class PagesProvider { /** * Get page image tile for drawing. */ public abstract Bitmap getPageBitmap(Tile tile); /...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package views; import Control.BlendImage; import Control.Controller; import java.io.IOException; import javax.microedition.lcdui.Alert; import javax.microedition.lcdui.AlertType; import javax.microedition.lcdui.ChoiceGr...
Java
package views; import Control.Controller; import com.sun.lwuit.events.ActionEvent; import models.Text; import com.sun.lwuit.Command; import com.sun.lwuit.Font; import com.sun.lwuit.Form; import com.sun.lwuit.TextArea; import com.sun.lwuit.events.ActionListener; /** * * @author WALL */ public class About extends Fo...
Java
package views; import Control.EndGif; import Control.MakeGif; import Control.Resize; import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; import java.util.Random; import javax.microedition.midlet.MIDlet; import javax.microedition.io.Connector; import javax.micro...
Java
package views; import java.io.IOException; import models.Text; import Control.Controller; import com.sun.lwuit.Button; import com.sun.lwuit.ButtonGroup; import com.sun.lwuit.ComboBox; import com.sun.lwuit.Command; import com.sun.lwuit.Container; import com.sun.lwuit.Font; import com.sun.lwuit.Form; import com.sun.lwui...
Java
package views; import Control.Controller; import Control.MakeGif; import java.io.IOException; import java.util.Random; import javax.microedition.lcdui.*; import javax.microedition.lcdui.game.GameCanvas; import models.Text; /* * To change this template, choose Tools | Templates * and open the template in...
Java
package views; import Control.Controller; import Control.MakeGif; import java.io.*; import javax.microedition.lcdui.*; import javax.microedition.lcdui.game.GameCanvas; /** * @WAll */ public class LoadScreen extends GameCanvas{ private Graphics g; MakeGif main; public LoadScreen(MakeGif main) {...
Java
package views; //import java.net.*; import javax.microedition.lcdui.*; import javax.microedition.io.*; import java.io.*; import java.util.*; //import java.awt.*; //import java.awt.image.*; /** * Class GifDecoder - Decodes a GIF file into one or more frames. * <br><pre> * Example: * GifDecoder d = new GifDecod...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package views; import Control.Controller; import Control.MakeGif; import java.io.DataOutputStream; import java.io.IOException; import javax.microedition.io.Connector; import javax.microedition.io.file.FileCon...
Java
package views; /************************************************************************* IMPORTANT: This code requires the MIDP 2.0 APIs to function! File: GIF_Canvas.java Purpose: Displays the choosen GIF file and implements animation for it Created by: Tom Thompson ********************************************...
Java
package views; import Control.BlendImage; import java.io.IOException; import models.Text; import Control.Controller; import Control.Resize; import Control.EndGif; import com.sun.lwuit.Button; import com.sun.lwuit.Command; import com.sun.lwuit.Display; import com.sun.lwuit.Form; import com.sun.lwuit.VideoComponent; i...
Java
package Control; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import views.Communication; import java.io.*; import java.util.*; import javax.microedition.io.*; import javax.microedition.io.file.*; import javax.microedition.lcdui.*; import javax.microedition.midlet...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Control; import javax.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; /** * * @author Tran Ha */ public class BlendImage { public Image blend(Image img1, Image img2, ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Control; /** * * @author Wall */ import java.io.IOException; import java.io.OutputStream; import javax.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; public class EndGif...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Control; import com.nokia.mid.ui.CategoryBar; import com.nokia.mid.ui.ElementListener; import com.nokia.mid.ui.IconCommand; import com.sun.lwuit.plaf.UIManager; import com.sun.lwuit.util.Resources; import event....
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Control; import javax.microedition.lcdui.Image; /** * * @author Wall */ public class Resize { public Image CreateScaledImage( Image imgOldImage, int iNewWidth, int iNewHeight ){ ...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ import javax.microedition.lcdui.Graphics; import javax.microedition.lcdui.Image; /** * * @author Tran Ha */ public class BlendImage { public Image blend(Image img1, Image img2, int value256, in...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package models; import javax.microedition.lcdui.Canvas; import javax.microedition.lcdui.Graphics; /** * * @author TRITUEVIET */ public class Text { public static String[] custom0={" mixed with pictures"," yell...
Java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package event; import java.util.Hashtable; /** * * @author TRITUEVIET */ public class Event { public static final int SECLECT_LANGUAGES= 0x00A; public Hashtable data; public Event() { ...
Java
package com.animalFace.webapp.listener; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.appfuse.Constants; import org.appfuse.service.LookupManager; import org.compass.gps.CompassGps; import org.springframework.beans.factory.NoSuchBeanDefinitionException; import ...
Java
package com.animalFace.webapp.listener; import org.appfuse.model.User; import org.springframework.security.authentication.AuthenticationTrustResolver; import org.springframework.security.authentication.AuthenticationTrustResolverImpl; import org.springframework.security.core.Authentication; import org.springfram...
Java
/* Copyright (c) 2010, Chin Huang All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fol...
Java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you...
Java
/* Copyright (c) 2010, Chin Huang All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the fol...
Java
package com.animalFace.webapp.taglib; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.appfuse.Constants; import javax.servlet.jsp.JspException; import javax.servlet.jsp.PageContext; import javax.servlet.jsp.tagext.TagSupport; import java.lang.reflect.Accessible...
Java
package com.animalFace.webapp.taglib; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.commons.validator.Field; import org.apache.commons.validator.Form; import org.apache.commons.validator.ValidatorResources; import org.springframework.beans.factory.BeanFac...
Java
package com.animalFace.webapp.taglib; import org.appfuse.model.LabelValue; import org.displaytag.tags.el.ExpressionEvaluator; import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.TagSupport; import java.io.IOException; import java.text.Collator; import java.util.ArrayList; import java.util...
Java
package com.animalFace.webapp.taglib; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.appfuse.Constants; import javax.servlet.jsp.tagext.TagData; import javax.servlet.jsp.tagext.TagExtraInfo; import javax.servlet.jsp.tagext.VariableInfo; import java.lang.reflec...
Java
package com.animalFace.webapp.search; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.compass.core.config.CompassConfiguration; import org.compass.core.config.ConfigurationException; import org.compass.spring.LocalCompassBeanPostProcessor; /** * Compass Post P...
Java
package com.animalFace.webapp.filter; import org.appfuse.Constants; import org.springframework.context.i18n.LocaleContextHolder; import org.springframework.web.filter.OncePerRequestFilter; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; i...
Java
package com.animalFace.webapp.filter; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequestWrapper; import java.util.Collections; import java.util.Enumeration; import java.util.List; imp...
Java
package com.animalFace.webapp.controller; import org.apache.commons.lang.StringUtils; import org.appfuse.Constants; import org.appfuse.model.User; import org.appfuse.service.RoleManager; import org.appfuse.service.UserExistsException; import com.animalFace.webapp.util.RequestUtil; import org.springframework.be...
Java
package com.animalFace.webapp.controller; import org.apache.commons.lang.StringUtils; import org.appfuse.Constants; import org.appfuse.model.Role; import org.appfuse.model.User; import org.appfuse.service.RoleManager; import org.appfuse.service.UserExistsException; import org.appfuse.service.UserManager; impo...
Java
package com.animalFace.webapp.controller; /** * Command class to handle uploading of a file. * * <p> * <a href="FileUpload.java.html"><i>View Source</i></a> * </p> * * @author <a href="mailto:matt@raibledesigns.com">Matt Raible</a> */ public class FileUpload { private String name; privat...
Java
package com.animalFace.webapp.controller; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.appfuse.Constants; import org.appfuse.model.User; import org.appfuse.service.MailEngine; import org.appfuse.service.UserManager; import org.springframework.beans.factory.ann...
Java
package com.animalFace.webapp.controller; import org.appfuse.Constants; import org.springframework.stereotype.Controller; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org....
Java
package com.animalFace.webapp.controller; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.animalFace.webapp.listener.StartupListener; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.spring...
Java
package com.animalFace.webapp.controller; import org.appfuse.Constants; import org.appfuse.service.UserManager; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframewo...
Java
package com.animalFace.webapp.controller; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.appfuse.model.User; import org.appfuse.service.MailEngine; import org.appfuse.service.UserManager; import com.animalFace.webapp.util.RequestUtil; import org.springframework....
Java
package com.animalFace.webapp.spring; import org.springframework.beans.MutablePropertyValues; import org.springframework.beans.PropertyValue; import org.springframework.beans.factory.config.BeanDefinition; import org.springframework.beans.factory.config.BeanFactoryPostProcessor; import org.springframework.beans....
Java
package com.animalFace.webapp.util; import org.apache.commons.validator.Field; import org.apache.commons.validator.GenericValidator; import org.apache.commons.validator.ValidatorAction; import org.apache.commons.validator.util.ValidatorUtils; import org.springframework.validation.Errors; import org.springmodule...
Java
package com.animalFace.webapp.util; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * Convenience class for setting and retrieving cookies...
Java
package com.animalFace.webapp.filter; import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import javax.servlet.FilterChain; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.ServletR...
Java
package com.animalFace.webapp.controller; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.junit.Before; import org.springframework.mail.javamail.JavaMailSenderImpl; import org.springframework.mock.web.MockHttpServletRequest; import org.springframework.test.context...
Java
package org.keyczar.jce; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.math.BigInteger; import java.security.interfaces.ECPublicKey; import java.security.spec.ECParameterSpec; import java.security.spec.ECPoint; import org.mozilla.jss.asn1.BIT_STRING; import org.mozilla.jss.as...
Java
package org.keyczar.jce; import java.math.BigInteger; import java.security.KeyPair; import java.security.KeyPairGeneratorSpi; import java.security.SecureRandom; import java.security.spec.ECParameterSpec; /** * This class implements an EC keypair generator. * * @author martclau@gmail.com * */ publ...
Java
package org.keyczar.jce; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.math.BigInteger; import java.security.InvalidKeyException; import java.security.InvalidParameterException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import j...
Java
package org.keyczar.jce; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.math.BigInteger; import java.security.Key; import java.security.KeyFactorySpi; import java.security.PrivateKey; import java.security.PublicKey; import java.security.spec.ECParameterSpec; import jav...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
Java
package org.keyczar.jce; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.math.BigInteger; import java.security.interfaces.ECPrivateKey; import java.security.spec.ECParameterSpec; import org.mozilla.jss.asn1.INTEGER; import org.mozilla.jss.asn1.OBJECT_IDENTIFIER; import org.mozi...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
// Copyright 2011 Google Inc. All Rights Reserved. package org.keyczar; import junit.framework.TestCase; import org.junit.Test; import org.keyczar.exceptions.KeyczarException; import org.keyczar.i18n.Messages; /** * Test PKCS8 export functionality. * * TODO(swillden) After import functionality is added, make thi...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
package org.keyczar; import junit.framework.TestCase; import java.nio.ByteBuffer; import org.keyczar.util.Util; /** * Test cases for the org.keyczar.util.Util methods * * TODO(dlundberg): Create test cases for all of the Util methods. */ public class UtilTest extends TestCase { private void doTestBadLenPref...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
// Copyright 2012 Google Inc. All Rights Reserved. package org.keyczar.keyparams; import org.keyczar.HmacKey; import org.keyczar.exceptions.KeyczarException; /** * Interface for objects which provide configuration information for RSA key generation. * * @author swillden@google.com (Shawn Willden) */ public inter...
Java
package org.keyczar.keyparams; import org.keyczar.exceptions.KeyczarException; /** * Interface for objects which provide key configuration parameters for key generation. * This base interface only provides one element, required by all keys: size. Sub-interfaces * exist for specific key types that provide the conf...
Java
package org.keyczar.keyparams; import org.keyczar.enums.RsaPadding; import org.keyczar.exceptions.KeyczarException; /** * Interface for objects which provide configuration information for RSA key generation. * * @author swillden@google.com (Shawn Willden) */ public interface RsaKeyParameters extends KeyParameters...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2011 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
/* * Copyright 2010 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
package org.keyczar.interop; import com.google.gson.Gson; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.varia.NullAppender; import org.keyczar.exceptions.KeyczarException; /** * Command line interop testing tool that takes js...
Java
package org.keyczar.interop; import org.keyczar.exceptions.KeyczarException; import org.keyczar.interop.operations.Operation; import java.util.Map; import java.util.Set; /** * Class used for gson data to call generate commands */ public class Generator { @SuppressWarnings("unused") private final String command...
Java
package org.keyczar.interop.operations; import org.keyczar.UnversionedSigner; import org.keyczar.UnversionedVerifier; import org.keyczar.exceptions.KeyczarException; import java.util.Map; /** * Tests functionality of unversioned signing */ public class UnversionedSignOperation extends Operation { public Unversi...
Java
/* * Copyright 2013 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
package org.keyczar.interop.operations; import org.keyczar.Signer; import org.keyczar.Verifier; import org.keyczar.exceptions.KeyczarException; import java.util.Map; /** * Tests functionality of signing */ public class SignOperation extends Operation { public SignOperation(String keyPath, String testData) { ...
Java
package org.keyczar.interop.operations; import org.keyczar.Signer; import org.keyczar.Verifier; import org.keyczar.exceptions.KeyczarException; import java.util.Map; /** * Tests functionality of attached signing */ public class AttachedSignOperation extends Operation { public AttachedSignOperation(String keyPat...
Java
package org.keyczar.interop.operations; import org.keyczar.Crypter; import org.keyczar.Encrypter; import org.keyczar.exceptions.KeyczarException; import java.util.Map; /** * Tests functionality of Encryption */ public class EncryptOperation extends Operation { public EncryptOperation(String keyPath, String test...
Java
package org.keyczar.interop.operations; import com.google.gson.Gson; import org.keyczar.Crypter; import org.keyczar.Encrypter; import org.keyczar.SignedSessionDecrypter; import org.keyczar.SignedSessionEncrypter; import org.keyczar.Signer; import org.keyczar.Verifier; import org.keyczar.exceptions.KeyczarException; i...
Java