harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r482567 - /harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Signer.java
Date Tue, 05 Dec 2006 10:11:41 GMT
Author: smishura
Date: Tue Dec  5 02:11:38 2006
New Revision: 482567

URL: http://svn.apache.org/viewvc?view=rev&rev=482567
Log:
Reformatting

Modified:
    harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Signer.java

Modified: harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Signer.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Signer.java?view=diff&rev=482567&r1=482566&r2=482567
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Signer.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/security/src/main/java/common/java/security/Signer.java
Tue Dec  5 02:11:38 2006
@@ -16,9 +16,9 @@
  */
 
 /**
-* @author Aleksei Y. Semenov
-* @version $Revision$
-*/
+ * @author Aleksei Y. Semenov
+ * @version $Revision$
+ */
 
 package java.security;
 
@@ -31,22 +31,22 @@
  */
 
 public abstract class Signer extends Identity {
-    
+
     /**
      * @com.intel.drl.spec_ref 
-     */   
+     */
     private static final long serialVersionUID = -1763464102261361480L;
-    
+
     /**
      * @com.intel.drl.spec_ref 
      */
     private PrivateKey privateKey;
-    
+
     /**
      * @com.intel.drl.spec_ref 
      */
-    protected  Signer() {
-        super();        
+    protected Signer() {
+        super();
     }
 
     /**
@@ -69,44 +69,48 @@
      */
     public PrivateKey getPrivateKey() {
         SecurityManager sm = System.getSecurityManager();
-        if (sm!=null) {
+        if (sm != null) {
             sm.checkSecurityAccess("getSignerPrivateKey"); //$NON-NLS-1$
         }
-        
+
         return privateKey;
     }
-    
+
     /**
      * @com.intel.drl.spec_ref 
-     */    
-    public final void setKeyPair(KeyPair pair) throws InvalidParameterException, KeyException
{
-        if ((pair==null) || (pair.getPrivate()==null) || (pair.getPublic()==null)) throw
new InvalidParameterException(); 
+     */
+    public final void setKeyPair(KeyPair pair)
+            throws InvalidParameterException, KeyException {
+        if ((pair == null) || (pair.getPrivate() == null)
+                || (pair.getPublic() == null)) {
+            throw new InvalidParameterException();
+        }
         SecurityManager sm = System.getSecurityManager();
-        if (sm!=null) {
+        if (sm != null) {
             sm.checkSecurityAccess("setSignerKeyPair"); //$NON-NLS-1$
         }
         final PublicKey pk = pair.getPublic();
         try {
-            AccessController.doPrivileged(
-                    new PrivilegedExceptionAction() {
-                        public Object run() throws KeyManagementException {
-                            setPublicKey(pk);
-                            return null;
-                        }
-                    }
-            );
+            AccessController.doPrivileged(new PrivilegedExceptionAction() {
+                public Object run() throws KeyManagementException {
+                    setPublicKey(pk);
+                    return null;
+                }
+            });
         } catch (PrivilegedActionException e) {
             throw new KeyException(e.getException());
         }
-        this.privateKey = pair.getPrivate(); 
+        this.privateKey = pair.getPrivate();
     }
-    
+
     /**
      * @com.intel.drl.spec_ref 
-     */    
-    public String toString() {        
-        String s = "[Signer]"+getName(); //$NON-NLS-1$
-        if (getScope()!=null) s = s+"["+getScope().toString()+"]"; //$NON-NLS-1$ //$NON-NLS-2$
+     */
+    public String toString() {
+        String s = "[Signer]" + getName(); //$NON-NLS-1$
+        if (getScope() != null) {
+            s = s + "[" + getScope().toString() + "]"; //$NON-NLS-1$ //$NON-NLS-2$
+        }
         return s;
     }
 }



Mime
View raw message