public boolean HasKeyType ( CBORObject keyTypeObj ) { CBORObject thatObj = keyTypeObj ; CBORObject thisObj = get ( KeyKeys . KeyType ) ; boolean result ; if ( thatObj == null ) { result = ( thisObj == null ) ; } else { result = thatObj . equals ( thisObj ) ; } return result ; }
Compares the key s assigned key type with the provided value indicating if the values are the same .