Any body know about Authority interface?

Dear all,
in the GlobalPlatform_Card_API_org.globalplatform_1.5, Authority interface has below information
public interface Authority
extends javacard.framework.Shareable
This interface provides services to recover a cryptographic key and to sign data. The CASD shall publish this interface to the OPEN, using Global Service interface, to make its services available to other Applications. The APSD is the first entity requiring this service from the CASD as shown in 2.1. There is only one CASD inside the card. The CASD shall register this service as a unique Global Service with the service family identifier =’83’ (per section 8.1.3 of GlobalPlatform Card Specification v2.2).
      The Authority interface is responsible for signing and verifying message with a key implicitly known. The implementer of this interface has the knowledge of the keys used for the different operations.
Since:
    export file version 1.2
Field Summary
static byte      MODE_KEY_RECOVERY
          Used in init() methods to indicate key recovery mode.
static byte      MODE_SIGN
          Used in init() methods to indicate signature sign mode.
Method Summary
void      init(byte theMode)
          Initializes the Authority interface with the appropriate mode (MODE_SIGN or MODE_KEY_RECOVERY).
short      recoverKey(byte[] inBuff, short inOffset, short inLength, byte[] outBuff, short outOffset)
          Recovers a cryptographic key from a set of data structures provided in the input buffer (inBuff).
short      sign(byte[] inBuff, short inOffset, short inLength, byte[] sigBuff, short sigOffset)
          Generates the signature of all/last input data.
void      update(byte[] inBuff, short inOffset, short inLength)
          Accumulates input data. for the current operation (MODE_SIGN or MODE_KEY_RECOVERY).
Method Detail
init
void init(byte theMode)
          throws javacard.security.CryptoException
    Initializes the Authority interface with the appropriate mode (MODE_SIGN or MODE_KEY_RECOVERY).
    Parameters:
        theMode - one of MODE_SIGN or MODE_KEY_RECOVERY
    Throws:
      # javacard.security.CryptoException - with the following reason code: ILLEGUAL_VALUE if theMode option is an undefined value
sign
short sign(byte[] inBuff,
           short inOffset,
           short inLength,
           byte[] sigBuff,
           short sigOffset)
           throws javacard.security.CryptoException
    Generates the signature of all/last input data. A call to this method resets this Authority interface to the state it was in when previously initialized via a call to init(). That is, the object is reset and available to sign another message. The input and output buffer may overlap and shall be global arrays.
    Parameters:
        inBuff - the input buffer of data to be signed
        inOffset - the offset in input buffer at which the signature starts
        inLength - the byte length to sign
        sigBuff - the output buffer to store signature data
        sigOffset - the offset into sigBuff at which to begin signature generation
    Returns:
        the number of bytes of signature output in sigBuff
    Throws:
      # javacard.security.CryptoException - with the following reason codes: INVALID_INIT if this Authority interface is not initialized or initialized in MODE_KEY_RECOVERY mode.
      # ILLEGAL_USE if this Authority algorithm does not pad the message and the message is not block aligned.
        java.lang.SecurityException - if the inBuff or sigBuff are not global array.
update
void update(byte[] inBuff,
            short inOffset,
            short inLength)
            throws javacard.security.CryptoException
    Accumulates input data. for the current operation (MODE_SIGN or MODE_KEY_RECOVERY).
    When this method is used, temporary storage of intermediate results is required. This method should only be used if all the input data required for the current operation is not available in one byte array. The sign or recoverKey methods are recommended whenever possible. The inBuff shall be global array.
    Parameters:
        inBuff - buffer containing input data
        inOffset - offset of input data
        inLength - length of input data
    Throws:
      # javacard.security.CryptoException - with the following reason codes: INVALID_INIT if this Authority interface is not initialized.
        java.lang.SecurityException - if the inBuff is not global array.
recoverKey
short recoverKey(byte[] inBuff,
                 short inOffset,
                 short inLength,
                 byte[] outBuff,
                 short outOffset)
                 throws javacard.security.CryptoException
    Recovers a cryptographic key from a set of data structures provided in the input buffer (inBuff). As a mandatory step, the recovery mechanism includes the verification of the origin and integrity of the recovered key. This method knows, from the set of data structures present in the input buffer, which recovery mechanism is to be used. The recovered key is written in the ouput buffer (outBuff) at specified offset (outOffset), in the form of a key data structure whose format depends on the type of the key. A call to this method resets this instance of the Authority interface to the state it was in when previously initialized via a call to init(). That is, the object is reset and available to recover another key. The input and output buffers may overlap and shall be global arrays.
    Parameters:
        inBuff - containing input data.
        inOffset - offset of input data.
        inLength - length of input data.
        outBuff - the buffer where recovered key data structure shall be written
        outOffset - offset where recovered key data structure shall be written
    Returns:
        Length of the recovered key data structure written in outBuff at outOffset,or 0 if the recovery mechanism failed (e.g. recovered key was considered invalid).
    Throws:
      # javacard.security.CryptoException - - with the following reason codes: INVALID_INIT if this Authority interface is not initialized or initialized in MODE_SIGN mode.
        java.lang.SecurityException - if the inBuff or outBuff are not global array.As my knowledge, to use above method of Authority interface, the applet should extends the Authority interface and implement those method above.
i want to validate above methods, but i still dont understand what should i do to validate above methods. Can any body tell me?
Thanks

/* Copyright (c) EJP Retirement Fund, 2007. All rights reserved. */
public class HeakingException extends Exception
public interface Heakable
void heak(Object ... args) throws HeakingException;
public abstract class AbstractHeakable implements Heakable
public class HeakableImpl extends AbstractHeakable
  public void    heak(Object ... args) throws HeakingException
      System.out.println("Consider yourself heaked!");
// and not forgetting the factory pattern
public abstract class AbstractHeakableFactory
  public static AbstractHeakableFactory getInstance()
    return new HeakableFactoryImpl();
  public abstract Heakable createHeakable();
class HeakableFactoryImpl extens AbstractHeakableFactory
  public Heakable createHeakable()
     return new HeakableImpl();
}

Similar Messages

  • Hi plz any body knows about difference between po_vendors and ap_vendors_v

    Any body knows about the difference between po_vendors and ap_vendors_v .plz send me the solution regarding this.
    thanks & regards
    Raghavendra
    09962651456
    [email protected]

    Any body knows about the difference between po_vendors and ap_vendors_v .plz send me the solution regarding this.
    thanks & regards
    Raghavendra
    09962651456
    [email protected]

  • Any one know about EDI interfaces..

    Hi,
    i don't know about EDI knowledge...any one help me out about EDI interfaces..
    thanks,
    rajesh

    HI
    EDI:
    An inter-company, application-to-application communication of data in standard format for business transactions, Electronic Data Interchange (EDI) is a set of standards for structuring information that is to be electronically exchanged between and within businesses, organizations, government entities and other groups. The standards describe structures that emulate documents
    Refer the below links for furtehr assistance on EDI
    https://www.sdn.sap.com/irj/sdn/advancedsearch?query=edi+interfaces&cat=sdn_all
    http://www.tradanet.intnet.mu/Tutorial/EDItutorial.htm
    http://www.tradanet.intnet.mu/Tutorial/EdiTutIx.htm
    http://www.icc.net/en_US/oc/icc.net/Resources/EDITutorial/
    http://www.edi-solution-info.com/
    Handling EDI interfaces using Seeburger BIC modules
    SAP XI supports EDIFACT
    How to get started using Conversion Agent from Itemfield
    More on the SAP Conversion Agent by Itemfield
    http://www.stylusstudio.com/edi/XML_to_X12.html
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b0b355ae-0501-0010-3b83-8f2bb566fa47
    Details on XI EDI adapter from seeburger
    SAP XI supports EDIFACT
    http://www.seeburger.it/fileadmin/it/pdf/2005_04_sapphire_Ferrero_transcript.pdf
    http://www.seeburger.com/fileadmin/com/pdf/Butler_Group_SEEBURGER_Technology_Audit.pdf
    http://www.seeburger.com/fileadmin/com/pdf/AS2_General_Overview.pdf
    SAP Adapters
    EDI with XI
    http://www.seeburger.com
    http://www.seeburger.com/fileadmin/com/pdf/AS2_General_Overview.pdf
    http://www.seeburger.it/fileadmin/it/pdf/2005_04_sapphire_Ferrero_transcript.pdf
    http://www.seeburger.com/fileadmin/com/pdf/SEEBURGER_SAP_Adapter_engl.pdf
    http://www.seeburger.com/fileadmin/com/pdf/Butler_Group_SEEBURGER_Technology_Audit.pdf
    http://www.sap.com/france/company/events/2006/02-01-Automotive-Seeburger.pdf
    http://h41123.www4.hp.com/presentations/ISUG/XISeeBurger.ppt
    http://www.sap.com/asia/company/events/nwtechdays/presentation/australia-slides/Pre-Built_Integration.pdf
    http://www.seeburger.com
    http://www.seeburger.it/fileadmin/it/pdf/2005_04_sapphire_Ferrero_transcript.pdf
    http://www.seeburger.com/fileadmin/com/pdf/Butler_Group_SEEBURGER_Technology_Audit.pdf
    http://www.sap.com/france/company/events/2006/02-01-Automotive-Seeburger.pdf
    http://h41123.www4.hp.com/presentations/ISUG/XISeeBurger.ppt
    EDI Adapter by SeeBurger
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/206e2b65-2ca8-2a10-edad-f2d1391644cb
    B2B(EDI) Integration using SAP Netweaver XI and Seeburger AS2 Adapter
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00f9cdf5-d812-2a10-03b4-aff3bbf792bf
    Integrating XI with SeeBurger
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6dc02f5d-0601-0010-cd9d-f4ff9a7e8c33
    AS2 vs OFTPS:
    AS2 & OFTPS
    EDIFACT to XML - Stylus Studio Solution  tool 4 EDI
    cheers

  • When I run the report it gives some error, any body knows about it help me.

    Hi ALL
    I instl business content reports for my client req, but now some repots are working and some reports gives
    error below,
    The requested query 0CSAL_C07/0CSAL_C07_Q0101 does not exist on the current server
    Error when generating dataProvider 0CRM_PRLI_Q0101_V01
    i can not able to run the reports , did any body face this error plz help me

    Thanks for reply
    when I instal business content , when i instal respective query/cube belong to this error occured one ,
    when i click on instal it gives error like the colected objects are not found?,what can i do
    Thanks & Regards
    Sanjana

  • Does any body know how to connect the fingerprint scanner using jmf is it p

    Hai,
    I am not getting how to connect the fingerprint scanner how we can do it is it possible for device independent application
    If any body knows anything about this please mail me its very urgent for me
    hope u will be able to tell me something about this .
    Regards
    K Naveen Kumar

    Hi,
    Fingerprint scanners are not popular enough devices to be supported by Java yet. There's no general API or Java interface for it.
    Each manufacturer of a fingerprint device will probably just ship their own drivers or SDKs. More than likely DLL's, so you'd need to write some JNI to call them.
    If you want to allow your application to work with multiple devices, you will have to design it to do that. Ie. write a general "Fingerprint" interface, and write a class which implements that interface for each device you want to support.
    Eg.
    public interface FingerPrintAPI
         public void initialiseScanner ( )
                throws MyScannerException;
         public byte[] getFingerPrint ( )
                throws MyScannerException;
         public double getMatchProbability ( byte[] fingerprint1, byte[] fingerprint2 )
                throws MyScannerException;
         public void closeScanner ( )
                throws MyScannerException;
    }I haven't used a fingerprint device at all, but that's how I would approach it.
    regards,
    Owen

  • Does any body knows how to detect the resolution of an inserted image in word?

    Does any body knows how to detect the resolution of an inserted image in word?

    I'm not sure I understand your reply but when you insert images into Word that are larger than will fit on the page, they are automatically compressed. If you right click and select Size and Position you can restore it to 100% but you will not see all the image.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Any body know - Video and Voice conferencing from Novell ?

    Any body know - Video and Voice conferencing from Novell (product similar on the functional capabilities on Lync-server) ?
    Serg

    Hello,
    I do suppose you are talking about the Novell Teaming + Conferencing solution or products ....
    Conferencing is gone ... As far as I know no future @ Novell...
    Teaming is now Vibe ....
    Stephan

  • Hey Guys i have a problem with my mac since last month and it wont boot up it freezes in a grey apple logo and and spinning gear any body know how to fix this?

    Hey Guys i have a problem with my mac since last month and it wont boot up it freezes in a grey apple logo and and spinning gear any body know how to fix this?

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    Step 1
    The first step in dealing with a boot failure is to secure your data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since your last backup, you can skip this step.
    There are several ways to back up a Mac that is unable to boot. You need an external hard drive to hold the backup data.
    a. Boot into Recovery by holding down the key combination command-R at the startup chime, or from a local Time Machine backup volume (option key at startup.) Release the keys when you see a gray screen with a spinning dial. When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in the support article linked below, under “Instructions for backing up to an external hard disk via Disk Utility.”
    How to back up and restore your files
    b. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, boot the non-working Mac in target disk mode by holding down the key combination command-T at the startup chime. Connect the two Macs with a FireWire or Thunderbolt cable. The internal drive of the machine running in target mode will mount as an external drive on the other machine. Copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    How to use and troubleshoot FireWire target disk mode
    c. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to boot, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can boot now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    Before reconnecting an external storage device, make sure that your internal boot volume is selected in the Startup Disk pane of System Preferences.
    Step 3
    Boot in safe mode.* The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click Log in.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode. Post for further instructions.
    When you boot in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, your boot volume is damaged and the drive is probably malfunctioning. In that case, go to step 5.
    If you can boot and log in now, empty the Trash, and then open the Finder Info window on your boot volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then reboot as usual (i.e., not in safe mode.)
    If the boot process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 4
    Sometimes a boot failure can be resolved by resetting the NVRAM.
    Step 5
    Launch Disk Utility in Recovery mode (see above for instructions.) Select your startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it produces. Look for the line "Permissions repaired successfully" at the end of the output. Then reboot as usual.
    Step 6
    Boot into Recovery again. When the OS X Utilities screen appears, follow the prompts to reinstall the OS. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Note: You need an always-on Ethernet or Wi-Fi connection to the Internet to use Recovery. It won’t work with USB or PPPoE modems, or with proxy servers, or with networks that require a certificate for authentication.
    Step 7
    Repeat step 6, but this time erase the boot volume in Disk Utility before installing. The system should automatically reboot into the Setup Assistant. Follow the prompts to transfer your data from a backup.
    Step 8
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store to have the machine tested.

  • TS1702 Any body know what is happening with this app "eTodo" ? is no more in the iTunes store !

    Any body know what is happening with this app "eTodo" ? is no more in the iTunes store !
    I have this problem for one year I think and no one can’t solve that,I made 6 screen shots and I will uploading in a few seconds all of them and please just check them !
    My problem is: I bought an application last year and after some time I had lost the app from my iTunes store.
    Now,what I want to do is: I want to get that app again,but I could not find anywhere in the iTunes  store,websites ,nobody could not help me with that
    The app has been deleted from everywhere !

    If the app is no longer in the store then you won't be able to redownload it. You don't have a copy of it in your computer's iTunes library or on your backup of your downloads/library so that you can sync it back to your phone ?

  • I am Greek. I downloaded a film from ipad but for the last days it has not been downloaded and the status is "waiting".the charge has been made to my credit card. Does any body knows?

    I am Greek. I purchased a film from ipad but for the last days it has not been downloaded and the status is "waiting".the charge has been made to my credit card. Does any body knows?

    something other is dowloading somewhere on ipad

  • Any body know when there will be maps for Israel?

    Any body know when there will be maps for Israel?

    Well, I was positively surprised, in the way that I actually got quite an informative answer from Navteq:
    Thank you for contacting NAVTEQ Maps.
    Unfortunately at this stage we do not have a precise release date available for the Israel map.
    We do apologize for the inconvenience.
    Should you require additional information, please send us your feedback by replying to this email.
    With kind regards,
    NAVTEQ Maps Customer Service
    Nokia Location & Commerce
    PO Box 501
    7300 AM APELDOORN
    THE NETHERLANDS
    But still no info whatsoever on when Israel would be available for Nokia maps.

  • I am registered  for adobe premiere elements ver 3 . .Any body know where I can find it to down load ? Or is there a newer version that I can download that my serial number will work with ?

    I am registered  for adobe premiere elements ver 3 . .Any body know where I can find it to down load ? Or is there a newer version that I can download that my serial number will work with ?

    There is no download available for version 3 that I am aware of - version 9 is the oldest available offered by Adobe.  Serial numbers are only valid for the version they were purchased for.

  • HT5429 For the new Map in ios 6 , for United Arab Emirates ... Directions Not Available , whenever you make route between 2 places .. Does any body know how we can get the Update work ??

    Does any Body know how we can solve this problem ...
    The new map in the ios 6 in the united Arab Emirates cant find all locations , and Route directions is not available ... does any body know how to solve this ??
    as the map before this was working ??

    Thanks for your interest.
    Excuse my ignorance as I'm not sure what you meant by "1 of 5" optimization. Did you mean median of 5 ?
    Regarding swapping pointers, yes it is common sense and rather common among programmers to swap pointers instead of swapping large data types, at the small price of indirect access to the actual data through the pointers.
    However, there is a rather unobvious and quite terrible side effect of using this trick. After the pointer array is sorted, sequential (sorted) access to the actual data throughout the remaining of the program will suffer heavily because of cache misses.
    Memory is being accessed randomly because the pointers still point to the unsorted data causing many many cache misses, which will render the program itself slow, although the sort was fast!!.
    Multi-threaded qsort is a good idea in principle and easy to implement obviously because qsort itself is recursive. The thing is Multi-threaded qsort is actually just stealing CPU time from other cores that might be busy running other apps, this might slow
    down other apps, which might not be ideal for servers. The thing researchers usually try to do is to do the improvement in the algorithm it self.
    I Will try to look at your sorting code, lets see if I can compile it.

  • Any body know this type of websites in java

    Hi i am new in java
    This website is very good:
    this is java swing tutor with examples:
    http://www.java-swing-tutorial.com
    is very useful to understand easily, explanation with examples, any body know this type any topic in java tell me.

    http://forum.java.sun.com/forum.jspa?forumID=57
    http://java.sun.com/docs/books/tutorial/ui/index.html

  • Can you any body tell about release codes in workflow

    Hi,
    Can any body tell about release codes in workflow.
    Regards,
    Boddu Rosaiah.

    Hi Naidu,
    You use this component if you wish to set up approval procedures for purchase requisitions or other purchasing documents. Under such a procedure, if a purchase requisition or external purchasing document fulfills certain conditions (e.g. the total order value exceeds $10,000), it has to be approved (by the cost center manager, for instance) before it can be processed further. This process of approving (clearing, or giving the "green light" to) a proposed item of expenditure is replicated in the SAP System by the "release procedure".
    It is sensible to define separate release procedures for different groups of materials for which different departments are responsible, and to define separate procedures for investment goods and consumption goods.
    <b>Features</b>
    Each person involved in the release procedure effects release (signifies approval) via a release transaction, using his or her release code. Once effected, a release can also be cancelled with the same code (that is to say, the original status is reinstated).
    If linkage to <b>SAP Business Workflow</b> has been defined for a release code, rejection is also possible. This is only possible for purchase requisitions.
    <b>Which Documents Can be Released (Approved)?</b>
    Release procedures can be defined for the following documents:
    Purchase Requisition
    The external purchasing documents purchase order (PO), contract, scheduling agreement, request for quotation (RFQ), and service entry sheet
      <b></b>

Maybe you are looking for

  • FCP 5 Won't open at all

    My FCP 5 won't open and i don't know how to remove the quicktime components. "/Library/QuickTime/"? Can anyone help please. CW

  • Encore is transcoding DVD legal m2v file

    Avi converted to m2v( Elementary Stream video only (720x480 NTSC) with TMPGEnc 4.0 XPress. Well I import the file to Encore CS3 (im on XP) and it imports fine but once I build the dvd it transcodes it....(settings for Blu-ray and DVD are on Automatic

  • Checking my email on my phone

    How do I get the email app on my phone so that I can check it and communicate to family and friends from my phone... it says that I have it installed but I can't use it and it says that I need to uninstall it in order to install and use it please hel

  • SQL Developer Memory Footprint

    We're looking at replacing around 200 TOAD licenses with SQL Developer. The only technical concern is the memory footprint, as in many cases it would be run from a terminal server with dozens of people logging on. A VM Size of 150MB seems to be not u

  • Adobe Creative Suite 6 Master Collection

    when i click on Adobe Creative Suite 6 Master Collection (try) it would say download it says Error 2032 what should i do? why isnt it letting me?