KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javacard > framework > UserException

javacard.framework
Class UserException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--javacard.framework.CardException
                    |
                    +--javacard.framework.UserException

public static void throwIt(short reason)
                    throws UserException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public UserException()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1449]Security checking
By Anonymous on 2005/06/14 06:25:02  Rate
public byte [  ]  getAccountNumber (  )  throws RemoteException, UserException  {  
          
         if (  !security.isCommandSecure ( SecurityService.PROPERTY_INPUT_INTEGRITY )  )  {  
             UserException.throwIt ( CORRUPTED_DATA ) ; 
          }  
              
         if ( !security.isAuthenticated ( SecurityService.PRINCIPAL_CARDHOLDER )  )   {  
             UserException.throwIt ( REQUEST_DENIED ) ; 
          }  
          
          
         return number; 
      }  
 


public UserException(short reason)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags