Code example for Mac

Methods: update

0
    } 
 
    public void write(int b)
        throws IOException 
    { 
        mac.update((byte)b);
    } 
 
    public void write( 
        byte[] b,
        int off,
        int len)
        throws IOException 
    { 
        mac.update(b, off, len);
    } 
 
    public byte[] getMac() 
    { 
        return mac.doFinal();
Contextual code suggestions in your IDE  Get Codota for Java